s3:registry: replace use of deprecated talloc_destroy by talloc_free.
authorMichael Adam <obnox@samba.org>
Mon, 4 Jul 2011 15:22:01 +0000 (17:22 +0200)
committerMichael Adam <obnox@samba.org>
Mon, 4 Jul 2011 18:02:10 +0000 (20:02 +0200)
source3/registry/reg_backend_db.c

index e660d2f3b8920da86a33399c2d2cb78ed4dd9103..387089f621b63ee75e401a7aaad2bc38d628ca9f 100644 (file)
@@ -441,7 +441,7 @@ static WERROR regdb_upgrade_v1_to_v2(struct db_context *db)
 
        rc = regdb->traverse(db, regdb_normalize_keynames_fn, mem_ctx);
 
-       talloc_destroy(mem_ctx);
+       talloc_free(mem_ctx);
 
        if (rc < 0) {
                return WERR_REG_IO_FAILURE;