From: Jo-Philipp Wich Date: Mon, 7 Feb 2022 09:04:11 +0000 (+0100) Subject: main: fix leaking -p/-s argument values X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=2f8b1360;hp=881fd3b671188945581c15feef3dbdd9b0af9102;p=project%2Fuhttpd.git main: fix leaking -p/-s argument values Signed-off-by: Jo-Philipp Wich --- diff --git a/main.c b/main.c index d1aac09..de5f2c3 100644 --- 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':