1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-28 01:58:17 +03:00

ctdb-common: Fix CID 1363227 (Resource leak)

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
This commit is contained in:
Amitay Isaacs 2016-07-27 12:02:19 +10:00 committed by Stefan Metzmacher
parent 10165c48f1
commit 9e2a7f0f85

View File

@ -434,11 +434,13 @@ int ctdb_parse_connections(FILE *fp, TALLOC_CTX *mem_ctx,
if (! parse_ip_port(src, &conn[num].src)) {
DEBUG(DEBUG_ERR, ("Invalid IP address %s\n", src));
talloc_free(conn);
return EINVAL;
}
if (! parse_ip_port(dst, &conn[num].dst)) {
DEBUG(DEBUG_ERR, ("Invalid IP address %s\n", dst));
talloc_free(conn);
return EINVAL;
}