Fix memory leak in Amiga frontend

This commit is contained in:
Chris Young 2019-06-09 20:17:47 +01:00
parent 7314651b95
commit 93494790f3
1 changed files with 4 additions and 1 deletions

View File

@ -247,6 +247,7 @@ char *translate_escape_chars(const char *s)
{
size_t i, ii, len;
char *ret;
char *outs;
len = strlen(s);
ret = malloc(len + 1);
if (ret == NULL)
@ -262,7 +263,9 @@ char *translate_escape_chars(const char *s)
}
ret[ii] = '\0';
return ami_utf8_easy(ret);
outs = ami_utf8_easy(ret);
free(ret);
return outs;
}
/**