diff options
author | Dom Lachowicz <domlachowicz@gmail.com> | 2009-01-24 14:45:58 +0000 |
---|---|---|
committer | Dom Lachowicz <domlachowicz@gmail.com> | 2009-01-24 14:45:58 +0000 |
commit | f1253b064682c86e5b2a9929a0f5c261f4579f29 (patch) | |
tree | c11a024946069c94f18344ee87b60b2da21a6ba0 | |
parent | 311c687895b2d84a5cb17ec886848d518105feff (diff) | |
download | enchant-f1253b064682c86e5b2a9929a0f5c261f4579f29.tar.gz |
Bug 11901 - Memory leak in function edit_dist (pwl.c)
From Harri Pitk�nen <hatapitk@iki.fi>
git-svn-id: svn+ssh://svn.abisource.com/svnroot/enchant/trunk@25541 bcba8976-2d24-0410-9c9c-aab3bd5fdfd6
-rw-r--r-- | src/pwl.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -1247,6 +1247,8 @@ static int edit_dist(const char* utf8word1, const char* utf8word2) } cost = table[len1*(len2+1) + len2]; + g_free(word1); + g_free(word2); g_free(table); return cost; } |