summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
Diffstat (limited to 'source4')
-rw-r--r--source4/lib/messaging/messaging.c4
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;
}
/*