conf: Fix CID 1130973 - resource leak.

Found by coverity.

Signed-off-by: Michael Adam <obnox@samba.org>
(cherry picked from commit a244c1d4aa)
This commit is contained in:
Michael Adam 2013-11-22 16:08:47 +01:00
parent 78ff8e0f07
commit 51d4f11448

View File

@ -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;
}
}