diff options
Diffstat (limited to 'source3/rpc_server')
-rw-r--r-- | source3/rpc_server/srvsvc/srv_srvsvc_nt.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/rpc_server/srvsvc/srv_srvsvc_nt.c b/source3/rpc_server/srvsvc/srv_srvsvc_nt.c index 1d976e1e87..982b0b479b 100644 --- a/source3/rpc_server/srvsvc/srv_srvsvc_nt.c +++ b/source3/rpc_server/srvsvc/srv_srvsvc_nt.c @@ -2210,7 +2210,7 @@ WERROR _srvsvc_NetGetFileSecurity(struct pipes_struct *p, } sd_buf->sd_size = sd_size; - sd_buf->sd = psd; + sd_buf->sd = talloc_move(p->mem_ctx, &psd); *r->out.sd_buf = sd_buf; @@ -2237,6 +2237,8 @@ error_exit: } done: + + TALLOC_FREE(psd); TALLOC_FREE(smb_fname); return werr; |