fix python memory leak.

git-svn-id: file:///svn/unbound/trunk@1818 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
Wouter Wijngaards committed 2009-09-04 14:14:54 +00:00
1 parent ca9c1fa2a8
commit 18e9cbb39f
3 files changed
+17 -10

No files matched your search

+2
View File
@@ -245,6 +245,8 @@ void pythonmod_deinit(struct module_env* env, int id)
Py_Finalize();
}
pe->fname = NULL;
free(pe);
/* Module is deallocated in Python */
env->modinfo[id] = NULL;