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:
parent
10165c48f1
commit
9e2a7f0f85
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user