summaryrefslogtreecommitdiff
path: root/source/smbd/lanman.c
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2007-04-28 18:16:33 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:19:45 -0500
commit5d428400f77399b7fc30fb2a0fb10f0c74b96458 (patch)
tree2ae29a22e74b69144175ad8a20647af57b668800 /source/smbd/lanman.c
parent4616c29b9f09b9863f1446e83c98e3adc327d0f9 (diff)
downloadsamba-5d428400f77399b7fc30fb2a0fb10f0c74b96458.tar.gz
r22561: Fix a memleak in lanman.c: Nobody would free the session_list.
Volker
Diffstat (limited to 'source/smbd/lanman.c')
-rw-r--r--source/smbd/lanman.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/smbd/lanman.c b/source/smbd/lanman.c
index cd2750d7595..05b1e812b25 100644
--- a/source/smbd/lanman.c
+++ b/source/smbd/lanman.c
@@ -4213,7 +4213,7 @@ static BOOL api_RNetSessionEnum(connection_struct *conn, uint16 vuid,
return False;
}
- num_sessions = list_sessions(&session_list);
+ num_sessions = list_sessions(tmp_talloc_ctx(), &session_list);
if (mdrcnt > 0) {
*rdata = SMB_REALLOC_LIMIT(*rdata,mdrcnt);