r15834: fixed a memory leak in the session code
authorAndrew Tridgell <tridge@samba.org>
Tue, 23 May 2006 06:52:22 +0000 (06:52 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:08:30 +0000 (14:08 -0500)
source/libcli/auth/session.c

index afa7afbd0fbc34b747ad9fbb533b8c611b0b3960..280a0d282c072830ab44486798b234cde9f070f0 100644 (file)
@@ -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);