summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2001-04-23 23:07:31 +0000
committerJeremy Allison <jra@samba.org>2001-04-23 23:07:31 +0000
commit30daf2e939b6dbc50e9389f26f3b1f4a4d6d5c2e (patch)
treedb700dffa0ec83f3be58cc47b610ee4509a04bfd
parent70b55a9abc109df0e15e3aa6f01c03d9acea154a (diff)
downloadsamba-30daf2e939b6dbc50e9389f26f3b1f4a4d6d5c2e.tar.gz
samba-30daf2e939b6dbc50e9389f26f3b1f4a4d6d5c2e.tar.bz2
samba-30daf2e939b6dbc50e9389f26f3b1f4a4d6d5c2e.zip
Fixed memory leak in new session code.
Jeremy. (This used to be commit 43b69e5d6e78a30563d7c1d03c7e920d529487b5)
-rw-r--r--source3/smbd/session.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/smbd/session.c b/source3/smbd/session.c
index 2f86832b4a..3131fb9f54 100644
--- a/source3/smbd/session.c
+++ b/source3/smbd/session.c
@@ -159,6 +159,9 @@ void session_yield(uint16 vuid)
&sessionid.username, &sessionid.hostname, &sessionid.id_str,
&sessionid.id_num, &sessionid.pid);
+ safe_free(data.dptr);
+ data.dptr = NULL;
+
#if WITH_UTMP
if (lp_utmp()) {
sys_utmp_yield(sessionid.username, sessionid.hostname,