]> diplodocus.org Git - nmh/commitdiff
Added free_fs() call to plug leak from fmt_compile().
authorDavid Levine <david.levine@gonift.com>
Mon, 30 May 2016 15:48:46 +0000 (11:48 -0400)
committerDavid Levine <david.levine@gonift.com>
Mon, 30 May 2016 15:48:46 +0000 (11:48 -0400)
docs/contrib/sendfrom.c

index 451a792..2ae8bd5 100644 (file)
@@ -298,6 +298,7 @@ get_message_header_info(FILE *in, char *format) {
     dat[3] = INT_MAX;
 
     (void) fmt_compile(new_fs(NULL, NULL, format), &fmt, 1);
+    free_fs();
 
     /*
      * Read in the message and process the header.