summaryrefslogtreecommitdiff
path: root/source3/torture
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2009-03-18 16:19:19 +1100
committerGünther Deschner <gd@samba.org>2009-04-07 12:54:59 +0200
commitfca02c9154796624958a877d2c92cabd65e9d0e4 (patch)
tree9cf9ea47ab0378836952847d2077f9f871fee038 /source3/torture
parentd71dec9259366e99beca69fcd9397bd38ed82c71 (diff)
downloadsamba-fca02c9154796624958a877d2c92cabd65e9d0e4.tar.gz
samba-fca02c9154796624958a877d2c92cabd65e9d0e4.tar.bz2
samba-fca02c9154796624958a877d2c92cabd65e9d0e4.zip
s3:smbtorture Convert charcnv torture suite to use push_ucs2_talloc()
Signed-off-by: Günther Deschner <gd@samba.org>
Diffstat (limited to 'source3/torture')
-rw-r--r--source3/torture/t_push_ucs2.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/torture/t_push_ucs2.c b/source3/torture/t_push_ucs2.c
index b9bf87ba54..2bd91dafde 100644
--- a/source3/torture/t_push_ucs2.c
+++ b/source3/torture/t_push_ucs2.c
@@ -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;
}