diff options
author | Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de> | 2009-11-18 10:24:09 +0100 |
---|---|---|
committer | Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de> | 2009-11-27 23:23:31 +0100 |
commit | 6f7cfb0e10a1967a59ff18221bd9941edcbc8790 (patch) | |
tree | 4193bcd39bc7d8e5431683560af8ec8ff43ddaaa | |
parent | 8f6df5d3ec31a8c3dedfdfc506c44e03026d8485 (diff) | |
download | samba-6f7cfb0e10a1967a59ff18221bd9941edcbc8790.tar.gz samba-6f7cfb0e10a1967a59ff18221bd9941edcbc8790.tar.bz2 samba-6f7cfb0e10a1967a59ff18221bd9941edcbc8790.zip |
s4:WINREG RPC server - Reintroduce the free operation on "CloseKey"
Better use "talloc_unlink" here Since we could have more than one reference.
-rw-r--r-- | source4/rpc_server/winreg/rpc_winreg.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/rpc_server/winreg/rpc_winreg.c b/source4/rpc_server/winreg/rpc_winreg.c index 86617a606a..ba619c02f7 100644 --- a/source4/rpc_server/winreg/rpc_winreg.c +++ b/source4/rpc_server/winreg/rpc_winreg.c @@ -98,6 +98,8 @@ static WERROR dcesrv_winreg_CloseKey(struct dcesrv_call_state *dce_call, DCESRV_PULL_HANDLE_FAULT(h, r->in.handle, HTYPE_REGKEY); + talloc_unlink(dce_call->context, h); + ZERO_STRUCTP(r->out.handle); return WERR_OK; |