fix python memory leak.

git-svn-id: file:///svn/unbound/trunk@1818 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
Wouter Wijngaards
2009-09-04 14:14:54 +00:00
parent ca9c1fa2a8
commit 18e9cbb39f
3 changed files with 17 additions and 10 deletions
+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;