core: free use of pointer after free in case of error in function string_dyn_concat
parent
46f409d463
commit
3dc72b2e5f
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue