]> diplodocus.org Git - nmh/commitdiff
replsbr.c: In parent, free child's argv[] built before fork().
authorRalph Corderoy <ralph@inputplus.co.uk>
Thu, 7 Sep 2017 09:36:56 +0000 (10:36 +0100)
committerRalph Corderoy <ralph@inputplus.co.uk>
Thu, 7 Sep 2017 09:51:07 +0000 (10:51 +0100)
Fixes ccafa1944.

uip/replsbr.c

index 2444aa3..61e76a9 100644 (file)
@@ -476,6 +476,7 @@ replfilter (FILE *in, FILE *out, char *filter, int fmtproc)
            if (pidXwait (pid, mhl))
                done (1);
            fseek (out, 0L, SEEK_END);
+            arglist_free(mhl, arglist);
            break;
     }
 }