core: free use of pointer after free in case of error in function string_dyn_concat

v2.8-utf8proc
Sébastien Helleu 2017-06-10 17:35:47 +02:00
parent 46f409d463
commit 3dc72b2e5f
1 changed files with 0 additions and 1 deletions

View File

@ -3428,7 +3428,6 @@ string_dyn_concat (char **string, const char *add)
{
free (ptr_string_dyn->string);
free (ptr_string_dyn);
*string = NULL;
return 0;
}
ptr_string_dyn->string = string_realloc;