diff options
author | Michael Adam <obnox@samba.org> | 2009-12-06 01:31:14 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2009-12-06 01:55:53 +0100 |
commit | f60aa477155d6b4a3a0d00d52936b9ce16bc3283 (patch) | |
tree | 82153dc35085554b20fe2cf330d716f68e3d2ee7 | |
parent | 5e399a7e17bb8d719005f18d8d77f62993c6de7d (diff) | |
download | tinyproxy-f60aa477155d6b4a3a0d00d52936b9ce16bc3283.tar.gz tinyproxy-f60aa477155d6b4a3a0d00d52936b9ce16bc3283.zip |
conf: allow set_string_arg to overwrite previous values (i.e. don't leak)
Michael
Diffstat (limited to '')
-rw-r--r-- | src/conf.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -385,6 +385,10 @@ static int set_string_arg (char **var, const char *line, regmatch_t * match) if (!arg) return -1; + if (*var != NULL) { + safefree (*var); + } + *var = arg; return 0; |