]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
lib: Add tevent_req_received() to messaging_filtered_read_recv()
authorVolker Lendecke <vl@samba.org>
Thu, 15 Oct 2020 14:31:46 +0000 (16:31 +0200)
committerJeremy Allison <jra@samba.org>
Wed, 21 Oct 2020 20:27:57 +0000 (20:27 +0000)
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

source3/lib/messages.c

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