r1415: One more memory leak, found by valgrind..
authorJeremy Allison <jra@samba.org>
Fri, 9 Jul 2004 00:59:06 +0000 (00:59 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 15:52:11 +0000 (10:52 -0500)
Jeremy.

source/rpc_server/srv_pipe.c

index 2232f0bc2436073e9529278892389f7f371bcbbb..c5b0b5694d5f89c1bfb4469a839c8814db8bcbcd 100644 (file)
@@ -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;