mirror of
https://github.com/samba-team/samba.git
synced 2025-02-23 09:57:40 +03:00
Fix memory leak in ctdb_send_message()
Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit da87395d29f5d11ecfedaf36b53fa060a9140bfd)
This commit is contained in:
parent
157f1cfefd
commit
1f96f42b73
@ -541,12 +541,8 @@ int ctdb_client_send_message(struct ctdb_context *ctdb, uint32_t pnn,
|
||||
memcpy(&r->data[0], data.dptr, data.dsize);
|
||||
|
||||
res = ctdb_client_queue_pkt(ctdb, &r->hdr);
|
||||
if (res != 0) {
|
||||
return res;
|
||||
}
|
||||
|
||||
talloc_free(r);
|
||||
return 0;
|
||||
return res;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user