X-Git-Url: http://git.openwrt.org/?p=project%2Ffirewall3.git;a=blobdiff_plain;f=utils.c;fp=utils.c;h=684b2c32c25eb5d3123151cce472413c6a9daa04;hp=4f892a7aa465bae393f7266a9773971d2bb5703c;hb=6920de7e4cc44f19b8b467560e853202bbe49fa1;hpb=6ba9105f880db5b69386fc6258e41641147fd313 diff --git a/utils.c b/utils.c index 4f892a7..684b2c3 100644 --- a/utils.c +++ b/utils.c @@ -252,6 +252,7 @@ __fw3_command_pipe(bool silent, const char *command, ...) switch ((pid = fork())) { case -1: + free(args); return false; case 0: @@ -275,6 +276,7 @@ __fw3_command_pipe(bool silent, const char *command, ...) } pipe_fd = fdopen(pfds[1], "w"); + free(args); return true; }