conf: Fix CID 1130973 - resource leak.
Found by coverity. Signed-off-by: Michael Adam <obnox@samba.org>
This commit is contained in:
parent
0f18e4fc3a
commit
a244c1d4aa
@ -903,6 +903,7 @@ static HANDLE_FUNC (handle_listen)
|
|||||||
if (conf->listen_addrs == NULL) {
|
if (conf->listen_addrs == NULL) {
|
||||||
log_message(LOG_WARNING, "Could not create a list "
|
log_message(LOG_WARNING, "Could not create a list "
|
||||||
"of listen addresses.");
|
"of listen addresses.");
|
||||||
|
safefree(arg);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user