mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-12-05 08:05:15 +00:00
fix python memory leak.
git-svn-id: file:///svn/unbound/trunk@1818 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
1 parent
ca9c1fa2a8
commit
18e9cbb39f
3 files changed
+17
-10
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user