mirror of
https://github.com/weechat/weechat.git
synced 2026-06-28 05:46:38 +02:00
core: fix memory leak in function gui_key_add_to_infolist (in case of insufficient memory)
This commit is contained in:
@@ -13,6 +13,8 @@ http://weechat.org/files/releasenotes/ReleaseNotes-devel.html[release notes]
|
||||
|
||||
== Version 0.4.4 (under dev)
|
||||
|
||||
* core: fix memory leak in function gui_key_add_to_infolist (in case of
|
||||
insufficient memory)
|
||||
* core: fix use of invalid pointer in function gui_bar_window_content_alloc
|
||||
(in case of insufficient memory)
|
||||
* core: fix uninitialized value in function string_decode_base64
|
||||
|
||||
@@ -1914,7 +1914,10 @@ gui_key_add_to_infolist (struct t_infolist *infolist, struct t_gui_key *key)
|
||||
if (expanded_key)
|
||||
{
|
||||
if (!infolist_new_var_string (ptr_item, "key", expanded_key))
|
||||
{
|
||||
free (expanded_key);
|
||||
return 0;
|
||||
}
|
||||
free (expanded_key);
|
||||
}
|
||||
if (!infolist_new_var_integer (ptr_item, "area_type1", key->area_type[0]))
|
||||
|
||||
Reference in New Issue
Block a user