1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-04 08:43:13 +02:00

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

This commit is contained in:
Sébastien Helleu
2017-06-10 17:35:47 +02:00
parent 46f409d463
commit 3dc72b2e5f
-1
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;