mirror of
https://github.com/weechat/weechat.git
synced 2026-07-01 15:26:37 +02:00
api: readjust string size in function string_dyn_free when string is not freed (issue #1875)
This frees some allocated memory if size_alloc was greater than size in the dynamic string.
This commit is contained in:
@@ -372,10 +372,7 @@ irc_join_build_string (struct t_arraylist *arraylist)
|
||||
|
||||
end:
|
||||
if (channels)
|
||||
{
|
||||
result = *channels;
|
||||
weechat_string_dyn_free (channels, 0);
|
||||
}
|
||||
result = weechat_string_dyn_free (channels, 0);
|
||||
if (keys)
|
||||
weechat_string_dyn_free (keys, 1);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user