summaryrefslogtreecommitdiff
path: root/source4/libnet/libnet_group.c
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mdw@samba.org>2010-07-04 20:04:28 +0200
committerMatthias Dieter Wallnöfer <mdw@samba.org>2010-07-04 22:05:17 +0200
commitb0bba4003e928cdf0540047d6e4b7659cb0ac765 (patch)
tree6e081ebf9f77c54b434252bdb2237ad0cfd7afd9 /source4/libnet/libnet_group.c
parent05237dca11b902104e271120a31a8a3114b35cc4 (diff)
downloadsamba-b0bba4003e928cdf0540047d6e4b7659cb0ac765.tar.gz
s4:libnet - add missing "talloc_free"s for "c" contexts on "recv" operations
Diffstat (limited to 'source4/libnet/libnet_group.c')
-rw-r--r--source4/libnet/libnet_group.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/libnet/libnet_group.c b/source4/libnet/libnet_group.c
index f0986675556..8c88aa38bb3 100644
--- a/source4/libnet/libnet_group.c
+++ b/source4/libnet/libnet_group.c
@@ -147,6 +147,7 @@ NTSTATUS libnet_CreateGroup_recv(struct composite_context *c,
r->out.error_string = talloc_strdup(mem_ctx, nt_errstr(status));
}
+ talloc_free(c);
return status;
}
@@ -408,7 +409,6 @@ NTSTATUS libnet_GroupInfo_recv(struct composite_context* c, TALLOC_CTX *mem_ctx,
}
talloc_free(c);
-
return status;
}
@@ -731,6 +731,7 @@ NTSTATUS libnet_GroupList_recv(struct composite_context *c, TALLOC_CTX *mem_ctx,
io->out.error_string = talloc_asprintf(mem_ctx, "Error: %s", nt_errstr(status));
}
+ talloc_free(c);
return status;
}