diff options
author | Andrew Tridgell <tridge@samba.org> | 2004-09-28 05:44:59 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2004-09-28 05:44:59 +0000 |
commit | f93daa6c62d2e3c77113995134867a88ec7310ef (patch) | |
tree | 3bd35d440717aadb514084ae04fda68364c9c2fd /source/librpc/rpc/dcerpc_smb.c | |
parent | a4301bec216726100eeb5c8ddeee05c2e60bce2c (diff) | |
download | samba-f93daa6c62d2e3c77113995134867a88ec7310ef.tar.gz samba-f93daa6c62d2e3c77113995134867a88ec7310ef.tar.xz samba-f93daa6c62d2e3c77113995134867a88ec7310ef.zip |
r2710: continue with the new style of providing a parent context whenever
possible to a structure creation routine. This makes for much easier
global cleanup.
Diffstat (limited to 'source/librpc/rpc/dcerpc_smb.c')
-rw-r--r-- | source/librpc/rpc/dcerpc_smb.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/librpc/rpc/dcerpc_smb.c b/source/librpc/rpc/dcerpc_smb.c index 893093c050b..ffe7e55a858 100644 --- a/source/librpc/rpc/dcerpc_smb.c +++ b/source/librpc/rpc/dcerpc_smb.c @@ -334,6 +334,7 @@ static NTSTATUS smb_shutdown_pipe(struct dcerpc_pipe *p) c.close.in.fnum = smb->fnum; c.close.in.write_time = 0; smb_raw_close(smb->tree, &c); + talloc_free(smb); return NT_STATUS_OK; @@ -433,7 +434,7 @@ NTSTATUS dcerpc_pipe_open_smb(struct dcerpc_pipe **p, } smb->fnum = io.ntcreatex.out.fnum; - smb->tree = talloc_reference(smb, tree); + smb->tree = tree; (*p)->transport.private = smb; |