diff options
-rw-r--r-- | librpc/ndr/ndr.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/librpc/ndr/ndr.c b/librpc/ndr/ndr.c index 15a7f12bb61..3ed0310a639 100644 --- a/librpc/ndr/ndr.c +++ b/librpc/ndr/ndr.c @@ -117,6 +117,7 @@ _PUBLIC_ struct ndr_push *ndr_push_init_ctx(TALLOC_CTX *mem_ctx) ndr->alloc_size = NDR_BASE_MARSHALL_SIZE; ndr->data = talloc_array(ndr, uint8_t, ndr->alloc_size); if (!ndr->data) { + talloc_free(ndr); return NULL; } |