projects
/
project
/
firewall3.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
utils: Free args in __fw3_command_pipe()
[project/firewall3.git]
/
utils.c
diff --git
a/utils.c
b/utils.c
index 4f892a7aa465bae393f7266a9773971d2bb5703c..684b2c32c25eb5d3123151cce472413c6a9daa04 100644
(file)
--- 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;
}