r23037: actually fix the asn1 memory leak :-)
authorStefan Metzmacher <metze@samba.org>
Mon, 21 May 2007 13:33:46 +0000 (13:33 +0000)
committerStefan Metzmacher <metze@samba.org>
Mon, 21 May 2007 13:33:46 +0000 (13:33 +0000)
metze

source/libcli/util/asn1.c

index 81ce72bed97744ca42cc2ed39c61ab85c13a51de..477887b96a636e74bfa4f84d2aa5877e53f47432 100644 (file)
@@ -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"));
        }