summaryrefslogtreecommitdiffstats
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2004-04-15 15:59:59 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:51:15 -0500
commit35016d020182f8c1e282271b722ed23df6d2660e (patch)
treef2e7a05ebb73a22ec3b08ca1906f2c140386117e /source3
parent4c34b09a19282295704b0d36dfd570edaf1a8e11 (diff)
downloadsamba-35016d020182f8c1e282271b722ed23df6d2660e.tar.gz
samba-35016d020182f8c1e282271b722ed23df6d2660e.tar.xz
samba-35016d020182f8c1e282271b722ed23df6d2660e.zip
r238: Fix memleak
(This used to be commit fe7daa3b8a080a9e39ff055177b54f476fce2c32)
Diffstat (limited to 'source3')
-rw-r--r--source3/rpc_server/srv_pipe_hnd.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/rpc_server/srv_pipe_hnd.c b/source3/rpc_server/srv_pipe_hnd.c
index 514c22d471..44fec78c50 100644
--- a/source3/rpc_server/srv_pipe_hnd.c
+++ b/source3/rpc_server/srv_pipe_hnd.c
@@ -1114,6 +1114,9 @@ static BOOL close_internal_rpc_pipe_hnd(void *np_conn)
/* Free the handles database. */
close_policy_by_pipe(p);
+ if (p->session_key.data != NULL)
+ data_blob_free(&p->session_key);
+
delete_nt_token(&p->pipe_user.nt_user_token);
SAFE_FREE(p->pipe_user.groups);