summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2013-02-20 10:38:13 +0100
committerAlexander Bokovoy <ab@samba.org>2013-02-22 16:36:14 +0100
commit6e8a975e8e33670803e9166a942bd986e695f4fc (patch)
treec2942392e92f56855e538bc2462a16d4e8d605a0
parent32a107cfcc04aa05b4db525fcc0dd7550264dff3 (diff)
downloadsamba-6e8a975e8e33670803e9166a942bd986e695f4fc.tar.gz
samba-6e8a975e8e33670803e9166a942bd986e695f4fc.tar.bz2
samba-6e8a975e8e33670803e9166a942bd986e695f4fc.zip
s3-libsmb: Don't leak memory on error.
Reviewed-by: Alexander Bokovoy <ab@samba.org>
-rw-r--r--source3/libsmb/libsmb_server.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/libsmb/libsmb_server.c b/source3/libsmb/libsmb_server.c
index 858622f565..0d39245109 100644
--- a/source3/libsmb/libsmb_server.c
+++ b/source3/libsmb/libsmb_server.c
@@ -812,6 +812,7 @@ SMBC_attr_server(TALLOC_CTX *ctx,
if (!NT_STATUS_IS_OK(nt_status)) {
errno = SMBC_errno(context, ipc_srv->cli);
cli_shutdown(ipc_srv->cli);
+ free(ipc_srv);
return NULL;
}