summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2013-11-22 16:08:47 +0100
committerMichael Adam <obnox@samba.org>2013-11-22 16:08:47 +0100
commita244c1d4aae776d98a769fcf51b2d8bbca502ca4 (patch)
tree4d37dca516161d4464d3697b9fceefa8b8c2d38f /src
parent0f18e4fc3a1205d5abd7f38c984b2dc707dc46c9 (diff)
downloadtinyproxy-a244c1d4aae776d98a769fcf51b2d8bbca502ca4.tar.gz
tinyproxy-a244c1d4aae776d98a769fcf51b2d8bbca502ca4.zip
conf: Fix CID 1130973 - resource leak.
Found by coverity. Signed-off-by: Michael Adam <obnox@samba.org>
Diffstat (limited to '')
-rw-r--r--src/conf.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/conf.c b/src/conf.c
index 740c7f4..c003627 100644
--- a/src/conf.c
+++ b/src/conf.c
@@ -903,6 +903,7 @@ static HANDLE_FUNC (handle_listen)
if (conf->listen_addrs == NULL) {
log_message(LOG_WARNING, "Could not create a list "
"of listen addresses.");
+ safefree(arg);
return -1;
}
}