summaryrefslogtreecommitdiff
path: root/src
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 /src
parent4b57c95494b5a4cbcc52a4e841c1a0724ed21725 (diff)
downloadweechat-32a4f4e1d531086eb4d94df40b2a1eede799c9f2.zip
core: fix memory leak when removing a hdata
Diffstat (limited to 'src')
-rw-r--r--src/core/wee-hdata.c2
1 files changed, 2 insertions, 0 deletions
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);
}