summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2004-07-09 00:59:06 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:52:11 -0500
commitba3aaa96adc078adb2e99f6cd188edc264df236d (patch)
treec407c32e3ac80da9f859374b89277cb465cabc80
parentcd87b3b972b39003def69671d8a3c6aaf51afd50 (diff)
downloadsamba-ba3aaa96adc078adb2e99f6cd188edc264df236d.tar.gz
samba-ba3aaa96adc078adb2e99f6cd188edc264df236d.tar.bz2
samba-ba3aaa96adc078adb2e99f6cd188edc264df236d.zip
r1415: One more memory leak, found by valgrind..
Jeremy. (This used to be commit 8cfaf575e5161e8307b0a53bd44e84c633e85aed)
-rw-r--r--source3/rpc_server/srv_pipe.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/rpc_server/srv_pipe.c b/source3/rpc_server/srv_pipe.c
index 2232f0bc24..c5b0b5694d 100644
--- a/source3/rpc_server/srv_pipe.c
+++ b/source3/rpc_server/srv_pipe.c
@@ -501,6 +501,9 @@ succeeded authentication on named pipe %s, but session key was of incorrect leng
* Store the UNIX credential data (uid/gid pair) in the pipe structure.
*/
+ if (p->session_key.data) {
+ data_blob_free(&p->session_key);
+ }
p->session_key = data_blob(server_info->lm_session_key.data, server_info->lm_session_key.length);
p->pipe_user.uid = server_info->uid;