summaryrefslogtreecommitdiff
path: root/source4/librpc
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-10-16 14:32:07 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:21:13 -0500
commit3478bf1c238eaa82d9383f18dcb7d802aed06cd0 (patch)
treed9a17d46f2063fa703fb19ea9fb506dfa4d2984b /source4/librpc
parent8773e743c518578584d07d35ffdafdd598af88b0 (diff)
downloadsamba-3478bf1c238eaa82d9383f18dcb7d802aed06cd0.tar.gz
samba-3478bf1c238eaa82d9383f18dcb7d802aed06cd0.tar.bz2
samba-3478bf1c238eaa82d9383f18dcb7d802aed06cd0.zip
r19341: ndr_push_union_blob() needs the same fix as ndr_push_struct_blob()
metze (This used to be commit 5c766ad48d0790b7ae865408fd0dbdb1769da2d8)
Diffstat (limited to 'source4/librpc')
-rw-r--r--source4/librpc/ndr/ndr.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/librpc/ndr/ndr.c b/source4/librpc/ndr/ndr.c
index 6a48980c6e..6ed533776a 100644
--- a/source4/librpc/ndr/ndr.c
+++ b/source4/librpc/ndr/ndr.c
@@ -820,6 +820,8 @@ _PUBLIC_ NTSTATUS ndr_push_union_blob(DATA_BLOB *blob, TALLOC_CTX *mem_ctx, void
}
*blob = ndr_push_blob(ndr);
+ talloc_steal(mem_ctx, blob->data);
+ talloc_free(ndr);
return NT_STATUS_OK;
}