From e5e9bcd39842e3b24460d9dcbfea079ed8d3c804 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 23 May 2006 06:52:22 +0000 Subject: r15834: fixed a memory leak in the session code (This used to be commit 8a7047c102cdbcf746dcdf8a52554816b7770026) --- source4/libcli/auth/session.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source4/libcli/auth/session.c') 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); -- cgit