Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
intlconv: Do not free alloca-ted string
  • Loading branch information
perexg committed Sep 13, 2014
1 parent 22eeadf commit 1ac14a2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/intlconv.c
Expand Up @@ -152,9 +152,7 @@ intlconv_utf8safestr( const char *dst_charset_id,
r--;
str[r++] = '\0';
res = strdup(str);
if (res == NULL) {
free(str);
} else {
if (res != NULL) {
/* don't terminate string */
for (i = 0; i < r - 1; i++)
if (str[i] == '\0')
Expand Down

0 comments on commit 1ac14a2

Please sign in to comment.