summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2014-03-02 17:59:08 +0100
committerSebastien Helleu <flashcode@flashtux.org>2014-03-02 17:59:08 +0100
commit32a4f4e1d531086eb4d94df40b2a1eede799c9f2 (patch)
tree7a3d8708efd49f495a015eb53d7e625ee84099e1
parent4b57c95494b5a4cbcc52a4e841c1a0724ed21725 (diff)
downloadweechat-32a4f4e1d531086eb4d94df40b2a1eede799c9f2.zip
core: fix memory leak when removing a hdata
-rw-r--r--ChangeLog1
-rw-r--r--src/core/wee-hdata.c2
2 files changed, 3 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index daf12c7fd..3a2319f73 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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);
}