diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2014-03-02 17:59:08 +0100 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2014-03-02 17:59:08 +0100 |
commit | 32a4f4e1d531086eb4d94df40b2a1eede799c9f2 (patch) | |
tree | 7a3d8708efd49f495a015eb53d7e625ee84099e1 | |
parent | 4b57c95494b5a4cbcc52a4e841c1a0724ed21725 (diff) | |
download | weechat-32a4f4e1d531086eb4d94df40b2a1eede799c9f2.zip |
core: fix memory leak when removing a hdata
-rw-r--r-- | ChangeLog | 1 | ||||
-rw-r--r-- | src/core/wee-hdata.c | 2 |
2 files changed, 3 insertions, 0 deletions
@@ -13,6 +13,7 @@ http://weechat.org/files/releasenotes/ReleaseNotes-devel.html[release notes] == Version 0.4.4 (under dev) +* core: fix memory leak when removing a hdata * core: fix memory leak in evaluation of sub-conditions * core: fix memory leak in function gui_key_add_to_infolist (in case of insufficient memory) diff --git a/src/core/wee-hdata.c b/src/core/wee-hdata.c index f14350616..c13f92e2c 100644 --- a/src/core/wee-hdata.c +++ b/src/core/wee-hdata.c @@ -967,6 +967,8 @@ hdata_free (struct t_hdata *hdata) free (hdata->var_next); if (hdata->hash_list) hashtable_free (hdata->hash_list); + if (hdata->name) + free (hdata->name); free (hdata); } |