]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
r19326: don't leak a ndr_push structure on ndr_push_struct_blob()
authorAndrew Tridgell <tridge@samba.org>
Mon, 16 Oct 2006 11:03:12 +0000 (11:03 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:21:09 +0000 (14:21 -0500)
(This used to be commit 9817cc235c5fd787855c60fa58f68b14f78cdb94)

source4/librpc/ndr/ndr.c

index 636353f53ff8de831b70829a4fb6ec79ffb4017e..6a48980c6e7928782ffd0c4662c57118a8826aa0 100644 (file)
@@ -795,6 +795,8 @@ _PUBLIC_ NTSTATUS ndr_push_struct_blob(DATA_BLOB *blob, TALLOC_CTX *mem_ctx, con
        }
 
        *blob = ndr_push_blob(ndr);
+       talloc_steal(mem_ctx, blob->data);
+       talloc_free(ndr);
 
        return NT_STATUS_OK;
 }