summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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,