summaryrefslogtreecommitdiff
path: root/source4/libcli
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2006-05-23 06:52:22 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:08:30 -0500
commite5e9bcd39842e3b24460d9dcbfea079ed8d3c804 (patch)
treeb62707fd2b41133cbf15a502774549bdcfb60ec0 /source4/libcli
parentd8223e4b94afe04f6b2fcf1a8ee4ba2d5cf16d22 (diff)
downloadsamba-e5e9bcd39842e3b24460d9dcbfea079ed8d3c804.tar.gz
samba-e5e9bcd39842e3b24460d9dcbfea079ed8d3c804.tar.bz2
samba-e5e9bcd39842e3b24460d9dcbfea079ed8d3c804.zip
r15834: fixed a memory leak in the session code
(This used to be commit 8a7047c102cdbcf746dcdf8a52554816b7770026)
Diffstat (limited to 'source4/libcli')
-rw-r--r--source4/libcli/auth/session.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/libcli/auth/session.c b/source4/libcli/auth/session.c
index afa7afbd0f..280a0d282c 100644
--- a/source4/libcli/auth/session.c
+++ b/source4/libcli/auth/session.c
@@ -151,7 +151,7 @@ DATA_BLOB sess_encrypt_blob(TALLOC_CTX *mem_ctx, DATA_BLOB *blob_in, const DATA_
return data_blob(NULL, 0);
}
- ret = data_blob(NULL, 8+dlen);
+ ret = data_blob_talloc(mem_ctx, NULL, 8+dlen);
if (!ret.data) {
data_blob_free(&src);
return data_blob(NULL, 0);