s3:smbtorture Convert charcnv torture suite to use push_ucs2_talloc()
authorAndrew Bartlett <abartlet@samba.org>
Wed, 18 Mar 2009 05:19:19 +0000 (16:19 +1100)
committerGünther Deschner <gd@samba.org>
Tue, 7 Apr 2009 10:54:59 +0000 (12:54 +0200)
Signed-off-by: Günther Deschner <gd@samba.org>
source3/torture/t_push_ucs2.c

index b9bf87ba5460f9a0e832b5e98ffeaea42581d014..2bd91dafdee983629f503c6af700dad6ddb61ffe 100644 (file)
@@ -14,16 +14,16 @@ static int check_push_ucs2(const char *orig)
        int ret;
        size_t converted_size;
 
-       push_ucs2_allocate(&dest, orig, &converted_size);
-       pull_ucs2_allocate(&orig2, dest, &converted_size);
+       push_ucs2_talloc(NULL, &dest, orig, &converted_size);
+       pull_ucs2_talloc(NULL, &orig2, dest, &converted_size);
        ret = strcmp(orig, orig2);
        if (ret) {
                fprintf(stderr, "orig: %s\n", orig);
                fprintf(stderr, "orig (UNIX -> UCS2 -> UNIX): %s\n", orig2);
        }
 
-       SAFE_FREE(dest);
-       SAFE_FREE(orig2);
+       TALLOC_FREE(dest);
+       TALLOC_FREE(orig2);
 
        return ret;
 }