]> granicus.if.org Git - neomutt/commitdiff
Fix memory leak in mutt_edit_headers(). Closes #3220.
authorBertram Felgenhauer <int-e@gmx.de>
Wed, 22 Apr 2009 21:29:23 +0000 (23:29 +0200)
committerBertram Felgenhauer <int-e@gmx.de>
Wed, 22 Apr 2009 21:29:23 +0000 (23:29 +0200)
headers.c

index 7a102b05e18b59fe77473236af6ee83fa5b5c499..62a7c672edbee4ff5218c72ccc32386b9792bf2f 100644 (file)
--- a/headers.c
+++ b/headers.c
@@ -111,6 +111,7 @@ void mutt_edit_headers (const char *editor,
   mutt_unlink (path);
 
   /* restore old info. */
+  mutt_free_list (&n->references);
   n->references = msg->env->references;
   msg->env->references = NULL;