1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

lib: Add tevent_req_received() to messaging_filtered_read_recv()

Early talloc_free() for the msg_rec if it's not picked up

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>

Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Wed Oct 21 20:27:57 UTC 2020 on sn-devel-184
This commit is contained in:
Volker Lendecke 2020-10-15 16:31:46 +02:00 committed by Jeremy Allison
parent d845e90e0e
commit a01dfc29c1

View File

@ -1163,6 +1163,7 @@ int messaging_filtered_read_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx,
if (presult != NULL) { if (presult != NULL) {
*presult = talloc_move(mem_ctx, &state->rec); *presult = talloc_move(mem_ctx, &state->rec);
} }
tevent_req_received(req);
return 0; return 0;
} }