diff options
author | Andrew Tridgell <tridge@samba.org> | 2005-07-28 04:09:11 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:30:08 -0500 |
commit | ba759b4c86efbf386bc20c1a10ff1996715af132 (patch) | |
tree | f7395c40d7927892d587f54a371206cb6644e18d /source4 | |
parent | 27f457e3a85b5ff19521e377ef7371f3e7463a4d (diff) | |
download | samba-ba759b4c86efbf386bc20c1a10ff1996715af132.tar.gz samba-ba759b4c86efbf386bc20c1a10ff1996715af132.tar.bz2 samba-ba759b4c86efbf386bc20c1a10ff1996715af132.zip |
r8819: fixed a memory leak in irpc_call()
(This used to be commit 25b7524ce5029eadd48c3046297ca6bd3260b013)
Diffstat (limited to 'source4')
-rw-r--r-- | source4/lib/messaging/messaging.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source4/lib/messaging/messaging.c b/source4/lib/messaging/messaging.c index 1a2485d700..911d439de1 100644 --- a/source4/lib/messaging/messaging.c +++ b/source4/lib/messaging/messaging.c @@ -717,7 +717,9 @@ NTSTATUS irpc_call(struct messaging_context *msg_ctx, { struct irpc_request *irpc = irpc_call_send(msg_ctx, server_id, table, callnum, r); - return irpc_call_recv(irpc); + NTSTATUS status = irpc_call_recv(irpc); + talloc_free(irpc); + return status; } /* |