]> granicus.if.org Git - neomutt/commitdiff
Fix memleak when attaching files.
authorKevin McCarthy <kevin@8t8.us>
Tue, 11 Apr 2017 19:14:47 +0000 (12:14 -0700)
committerKevin McCarthy <kevin@8t8.us>
Tue, 11 Apr 2017 19:14:47 +0000 (12:14 -0700)
compose.c

index aa59506e1bc824fb3df0bbfd31a2862e3969f752..bd9716d10096a29792559e5f1085af6885adbac8 100644 (file)
--- a/compose.c
+++ b/compose.c
@@ -714,6 +714,7 @@ int mutt_compose_menu (HEADER *msg,   /* structure for new message */
              mutt_error (_("Unable to attach %s!"), att);
              FREE (&idx[idxlen]);
            }
+            FREE (&files[i]);
          }
          
          FREE (&files);