diff options
-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; |