mirror of
https://github.com/samba-team/samba.git
synced 2025-03-01 04:58:35 +03:00
ctdb-common: Fix CID 1363227 Resource leak (RESOURCE_LEAK)
Occurs on an invalid line that isn't the first. Isn't really a leak because it is allocated off mem_ctx, which should be freed by the caller. BUG: https://bugzilla.samba.org/show_bug.cgi?id=12110 Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
This commit is contained in:
parent
1f942ec36c
commit
4541301d92
@ -420,6 +420,7 @@ int ctdb_parse_connections(FILE *fp, TALLOC_CTX *mem_ctx,
|
|||||||
if (ret != 2) {
|
if (ret != 2) {
|
||||||
DEBUG(DEBUG_ERR, ("Bad line [%d]: %s\n",
|
DEBUG(DEBUG_ERR, ("Bad line [%d]: %s\n",
|
||||||
line_num, line));
|
line_num, line));
|
||||||
|
talloc_free(conn);
|
||||||
return EINVAL;
|
return EINVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user