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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user