diff options
author | Matthias Dieter Wallnöfer <mdw@samba.org> | 2010-08-14 18:47:15 +0200 |
---|---|---|
committer | Matthias Dieter Wallnöfer <mdw@samba.org> | 2010-08-14 18:48:20 +0200 |
commit | ab3e20b82fca206d03a68acc501fdbd5a59b47a7 (patch) | |
tree | 0bbc63db7754ff4c170e4a47966e58d480b034aa /source4/libnet/libnet_group.c | |
parent | 2de63aa2801a907905b3e05557074af5b896d486 (diff) | |
download | samba-ab3e20b82fca206d03a68acc501fdbd5a59b47a7.tar.gz samba-ab3e20b82fca206d03a68acc501fdbd5a59b47a7.tar.bz2 samba-ab3e20b82fca206d03a68acc501fdbd5a59b47a7.zip |
s4:libnet - free the "c" context also on error conditions
(and if it's NULL then "talloc_free" does ignore it)
Diffstat (limited to 'source4/libnet/libnet_group.c')
-rw-r--r-- | source4/libnet/libnet_group.c | 1 |
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; } |