s3-registry: fix malloc/talloc mismatch upon free in reg_enumvalue().
authorGünther Deschner <gd@samba.org>
Wed, 30 Jun 2010 23:22:11 +0000 (01:22 +0200)
committerGünther Deschner <gd@samba.org>
Wed, 30 Jun 2010 23:22:11 +0000 (01:22 +0200)
Guenther

source3/registry/reg_api.c

index 1954fb50419b65b25cfdc90e18d02a7d11506510..65118b9f4c33217e8ee4a28a85c4cbdfa0212f48 100644 (file)
@@ -369,7 +369,7 @@ WERROR reg_enumvalue(TALLOC_CTX *mem_ctx, struct registry_key *key,
        if (pname
            && !(*pname = talloc_strdup(
                         mem_ctx, regval_name(blob)))) {
-               SAFE_FREE(val);
+               TALLOC_FREE(val);
                return WERR_NOMEM;
        }