summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Fedoryshchenko <denys.f@collabora.com>2024-04-12 01:23:50 +0300
committerDenys Fedoryshchenko <denys.f@collabora.com>2024-04-12 01:23:50 +0300
commit115c88b1ded6fe2c499c767b69b27c1e8a4dc449 (patch)
tree49d6da2a31c420850471e0a732e728e94bce1670
parent3668336266cb74b6d37e5b56c9c5b74761a868fc (diff)
downloadaccel-ppp-115c88b1ded6fe2c499c767b69b27c1e8a4dc449.tar.gz
accel-ppp-115c88b1ded6fe2c499c767b69b27c1e8a4dc449.zip
log_tcp: Fix small memory leak
Discovered using clang sanitizers. Signed-off-by: Denys Fedoryshchenko <denys.f@collabora.com>
-rw-r--r--accel-pppd/logs/log_tcp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/accel-pppd/logs/log_tcp.c b/accel-pppd/logs/log_tcp.c
index ad508e48..e0663d34 100644
--- a/accel-pppd/logs/log_tcp.c
+++ b/accel-pppd/logs/log_tcp.c
@@ -288,6 +288,7 @@ static int start_log(const char *_opt)
list_add_tail(&t->entry, &targets);
+ free(opt);
return 0;
err: