summaryrefslogtreecommitdiff
path: root/source4/libcli/util/asn1.c
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2007-05-21 13:33:46 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:52:43 -0500
commit774d66c1e69ab17dc3c3c188dafc6b2b005fd562 (patch)
tree2c1cab1756a411d7b6127f3b1ea005dc58220936 /source4/libcli/util/asn1.c
parent931f594cf16b8c7f9f416d7a8831432b783a0ec8 (diff)
downloadsamba-774d66c1e69ab17dc3c3c188dafc6b2b005fd562.tar.gz
samba-774d66c1e69ab17dc3c3c188dafc6b2b005fd562.tar.bz2
samba-774d66c1e69ab17dc3c3c188dafc6b2b005fd562.zip
r23037: actually fix the asn1 memory leak :-)
metze (This used to be commit 13bda1152d3b88c0b93610d4698ce24183334276)
Diffstat (limited to 'source4/libcli/util/asn1.c')
-rw-r--r--source4/libcli/util/asn1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/libcli/util/asn1.c b/source4/libcli/util/asn1.c
index 81ce72bed9..477887b96a 100644
--- a/source4/libcli/util/asn1.c
+++ b/source4/libcli/util/asn1.c
@@ -24,7 +24,7 @@
/* allocate an asn1 structure */
struct asn1_data *asn1_init(TALLOC_CTX *mem_ctx)
{
- struct asn1_data *ret = talloc_zero(NULL, struct asn1_data);
+ struct asn1_data *ret = talloc_zero(mem_ctx, struct asn1_data);
if (ret == NULL) {
DEBUG(0,("asn1_init failed! out of memory\n"));
}