summaryrefslogtreecommitdiff
path: root/source4/rpc_server
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2009-10-13 00:45:26 +0200
committerMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2009-10-13 00:53:47 +0200
commit7c53386adfb4658df11ed951614bbb7ec74af1cb (patch)
treec75e602f274403856da29d3e990f4132e36a26f9 /source4/rpc_server
parent6e19a9e05d6085224c0e6a0b46a0f7e468188124 (diff)
downloadsamba-7c53386adfb4658df11ed951614bbb7ec74af1cb.tar.gz
samba-7c53386adfb4658df11ed951614bbb7ec74af1cb.tar.bz2
samba-7c53386adfb4658df11ed951614bbb7ec74af1cb.zip
s4:dcesrv_samr - Add additional "talloc_free"s
Diffstat (limited to 'source4/rpc_server')
-rw-r--r--source4/rpc_server/samr/dcesrv_samr.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/rpc_server/samr/dcesrv_samr.c b/source4/rpc_server/samr/dcesrv_samr.c
index e354df7f41..b73add66c9 100644
--- a/source4/rpc_server/samr/dcesrv_samr.c
+++ b/source4/rpc_server/samr/dcesrv_samr.c
@@ -4183,10 +4183,14 @@ static NTSTATUS dcesrv_samr_GetDomPwInfo(struct dcesrv_call_state *dce_call, TAL
ret = gendb_search_dn(sam_ctx,
mem_ctx, NULL, &msgs, attrs);
if (ret <= 0) {
+ talloc_free(sam_ctx);
+
return NT_STATUS_NO_SUCH_DOMAIN;
}
if (ret > 1) {
talloc_free(msgs);
+ talloc_free(sam_ctx);
+
return NT_STATUS_INTERNAL_DB_CORRUPTION;
}