projects
/
project
/
uhttpd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
main: fix leaking -p/-s argument values
[project/uhttpd.git]
/
main.c
diff --git
a/main.c
b/main.c
index d1aac09c355206b25674319f75ef8f99399caf4b..de5f2c3a6bcb298385e8840606eae19f737c4c43 100644
(file)
--- a/
main.c
+++ b/
main.c
@@
-328,6
+328,7
@@
int main(int argc, char **argv)
case 'p':
optarg = strdup(optarg);
bound += add_listener_arg(optarg, (ch == 's'));
+ free(optarg);
break;
case 'h':