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

index 0e48db801058e70c1e8356d6cc982a8b334d4047..3c20e5113c1c51dba9bf3ec1455edfb7e7cf261b 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);
     dat[3] = INT_MAX;
 
     (void) fmt_compile(new_fs(NULL, NULL, format), &fmt, 1);
+    free_fs();
 
     /*
      * Read in the message and process the header.
 
     /*
      * Read in the message and process the header.