summaryrefslogtreecommitdiff
path: root/source3/rpc_server
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2011-03-07 13:12:47 +0100
committerGünther Deschner <gd@samba.org>2011-03-08 11:41:31 +0100
commita955c53843fb96f931cdf6674f5a3dcf9fe56bd4 (patch)
tree8c5c568cc710a731ccc6cfc93794ef3203e2835c /source3/rpc_server
parentbb201fac2bc9233fcc00f48e88cc97e92181ca4e (diff)
downloadsamba-a955c53843fb96f931cdf6674f5a3dcf9fe56bd4.tar.gz
samba-a955c53843fb96f931cdf6674f5a3dcf9fe56bd4.tar.bz2
samba-a955c53843fb96f931cdf6674f5a3dcf9fe56bd4.zip
s3-rpc_server: Free unused memory.
Signed-off-by: Günther Deschner <gd@samba.org>
Diffstat (limited to 'source3/rpc_server')
-rw-r--r--source3/rpc_server/srv_pipe.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/rpc_server/srv_pipe.c b/source3/rpc_server/srv_pipe.c
index 8af3b319ec..f941f33ddf 100644
--- a/source3/rpc_server/srv_pipe.c
+++ b/source3/rpc_server/srv_pipe.c
@@ -1028,6 +1028,8 @@ static bool api_pipe_bind_req(struct pipes_struct *p,
case DCERPC_AUTH_TYPE_NCALRPC_AS_SYSTEM:
if (p->transport == NCALRPC && p->system_user) {
+ TALLOC_FREE(p->session_info);
+
status = make_session_info_system(p,
&p->session_info);
if (!NT_STATUS_IS_OK(status)) {