s3-charcnv: always talloc_free in convert_string_talloc() error path.
authorGünther Deschner <gd@samba.org>
Mon, 8 Jun 2009 08:40:57 +0000 (10:40 +0200)
committerGünther Deschner <gd@samba.org>
Mon, 8 Jun 2009 08:44:50 +0000 (10:44 +0200)
Guenther

source3/lib/charcnv.c

index bb9b2054d10e1b69d59609653931deaab2bf53a9..791c866b57658b917b7efd75c6f99a9c3082a8fa 100644 (file)
@@ -586,8 +586,7 @@ bool convert_string_talloc(TALLOC_CTX *ctx, charset_t from, charset_t to,
                /* wrapped ! abort. */
                if (!conv_silent)
                        DEBUG(0, ("convert_string_talloc: destlen wrapped !\n"));
-               if (!ctx)
-                       TALLOC_FREE(outbuf);
+               TALLOC_FREE(outbuf);
                errno = EOPNOTSUPP;
                return false;
        } else {