summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReuben Thomas <rrt@sc3d.org>2019-09-11 14:18:31 +0100
committerReuben Thomas <rrt@sc3d.org>2019-09-11 14:18:31 +0100
commit6950c71af4991c843117127442c2782f795f8da3 (patch)
tree9b56fbd41d38d91fbb6d05352a64d8d571e3ed7b
parentd7dcf5e10412eb58410adecefb630d8372cb4632 (diff)
downloadenchant-6950c71af4991c843117127442c2782f795f8da3.tar.gz
Aspell provider: fix a couple of space leaks (thanks, ASAN!)
-rw-r--r--providers/enchant_aspell.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/providers/enchant_aspell.c b/providers/enchant_aspell.c
index b9083c3..1d64df9 100644
--- a/providers/enchant_aspell.c
+++ b/providers/enchant_aspell.c
@@ -143,6 +143,7 @@ aspell_provider_request_dict (EnchantProvider * me _GL_UNUSED_PARAMETER, const c
if (aspell_error_number (spell_error) != 0)
{
+ delete_aspell_can_have_error(spell_error);
return NULL;
}
@@ -182,6 +183,7 @@ aspell_provider_list_dicts (EnchantProvider * me _GL_UNUSED_PARAMETER,
const AspellDictInfo * entry;
while ( (entry = aspell_dict_info_enumeration_next(dels)) != 0)
(*out_n_dicts)++;
+ delete_aspell_dict_info_enumeration (dels);
char ** out_list = NULL;