From 2775c52baabc042089c7d1663d1fedb9b189bfab Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Sun, 7 Jun 2009 16:04:07 +0200 Subject: s3-charcnv: remove remaining malloc references in convert_string_talloc(). Guenther --- source3/lib/charcnv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source3/lib') diff --git a/source3/lib/charcnv.c b/source3/lib/charcnv.c index 1f2fa63f3e..bb9b2054d1 100644 --- a/source3/lib/charcnv.c +++ b/source3/lib/charcnv.c @@ -558,7 +558,7 @@ bool convert_string_talloc(TALLOC_CTX *ctx, charset_t from, charset_t to, return false; } if (srclen == 0) { - ob = ((ctx != NULL) ? talloc_strdup(ctx, "") : SMB_STRDUP("")); + ob = talloc_strdup(ctx, ""); if (ob == NULL) { errno = ENOMEM; return false; @@ -587,7 +587,7 @@ bool convert_string_talloc(TALLOC_CTX *ctx, charset_t from, charset_t to, if (!conv_silent) DEBUG(0, ("convert_string_talloc: destlen wrapped !\n")); if (!ctx) - SAFE_FREE(outbuf); + TALLOC_FREE(outbuf); errno = EOPNOTSUPP; return false; } else { -- cgit