summaryrefslogtreecommitdiff
path: root/source4/libnet/libnet_group.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/libnet/libnet_group.c')
-rw-r--r--source4/libnet/libnet_group.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source4/libnet/libnet_group.c b/source4/libnet/libnet_group.c
index 7679b42610..e3d51f342b 100644
--- a/source4/libnet/libnet_group.c
+++ b/source4/libnet/libnet_group.c
@@ -704,6 +704,7 @@ NTSTATUS libnet_GroupList_recv(struct composite_context *c, TALLOC_CTX *mem_ctx,
struct grouplist_state *s;
if (c == NULL || mem_ctx == NULL || io == NULL) {
+ talloc_free(c);
return NT_STATUS_INVALID_PARAMETER;
}