r8819: fixed a memory leak in irpc_call()
authorAndrew Tridgell <tridge@samba.org>
Thu, 28 Jul 2005 04:09:11 +0000 (04:09 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:30:08 +0000 (13:30 -0500)
(This used to be commit 25b7524ce5029eadd48c3046297ca6bd3260b013)

source4/lib/messaging/messaging.c

index 1a2485d7005785002b7e4224259f9686b3d0b9cd..911d439de1993be545b036a2216a3d5489dea07f 100644 (file)
@@ -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;
 }
 
 /*