summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2022-02-07 10:04:11 +0100
committerJo-Philipp Wich <jo@mein.io>2022-02-07 10:04:11 +0100
commit2f8b1360df25bab375ec60bbba2dce8dd796161c (patch)
tree3261f21c2f9350d04e9b7f2d7cd154f5ac1cf860
parent881fd3b671188945581c15feef3dbdd9b0af9102 (diff)
main: fix leaking -p/-s argument values
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
-rw-r--r--main.c1
1 files changed, 1 insertions, 0 deletions
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':