summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMukund Sivaraman <muks@banu.com>2008-03-30 17:56:45 -0700
committerMukund Sivaraman <muks@banu.com>2008-03-30 17:56:45 -0700
commitb110332ed3ba89bb4d4c9e9864b9765d2e6e0431 (patch)
tree04e1ff16ad5847f5a4df8ea9823e4efc39f42605
parentff72f5426e216ac9a897462f010abdf7a2f0ab90 (diff)
downloadtinyproxy-b110332ed3ba89bb4d4c9e9864b9765d2e6e0431.tar.gz
tinyproxy-b110332ed3ba89bb4d4c9e9864b9765d2e6e0431.zip
Free arg before returning, or it'll leak
Diffstat (limited to '')
-rw-r--r--src/conffile.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/conffile.c b/src/conffile.c
index 18f19fe..3c64603 100644
--- a/src/conffile.c
+++ b/src/conffile.c
@@ -657,9 +657,12 @@ HANDLE_FUNC(handle_loglevel)
for (i = 0; i != nlevels; ++i) {
if (!strcasecmp(arg, log_levels[i].string)) {
set_log_level(log_levels[i].level);
+ safefree(arg);
return 0;
}
}
+
+ safefree(arg);
return -1;
}