* mu-guile-message.c: don't free unitialized var in error path

This commit is contained in:
djcb 2012-02-21 21:46:00 +02:00 committed by djcb
parent 70743774e8
commit 3e1640fb7a
1 changed files with 3 additions and 2 deletions

View File

@ -449,6 +449,7 @@ SCM_DEFINE_PUBLIC (save_part, "mu:save-part", 2, 0, 0,
index = scm_to_uint (INDEX);
msgpath = scm_to_utf8_string (MSGPATH);
attachpath = NULL;
err = NULL;
msg = mu_msg_new_from_file (msgpath, NULL, &err);
if (!msg) {