diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-01-23 23:15:37 +0100 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-01-23 23:15:37 +0100 |
commit | d66bfc3f0754d2b563d30ac3e6e7b55f2fdefdf7 (patch) | |
tree | ddbd7d825830e41b6403817701d29777189b275a /module/plugins | |
parent | FileSonic Premium (diff) | |
download | pyload-d66bfc3f0754d2b563d30ac3e6e7b55f2fdefdf7.tar.xz |
closed memory leak in debug mode, closed #217
Diffstat (limited to 'module/plugins')
-rw-r--r-- | module/plugins/Plugin.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/module/plugins/Plugin.py b/module/plugins/Plugin.py index e237d52c8..f66a53bdc 100644 --- a/module/plugins/Plugin.py +++ b/module/plugins/Plugin.py @@ -294,6 +294,8 @@ class Plugin(object): makedirs(join("tmp", self.__name__)) f = open(join("tmp", self.__name__, "%s_line%s.dump.html" % (frame.f_back.f_code.co_name, frame.f_back.f_lineno)), "wb") + del frame # delete the frame or it wont be cleaned + try: tmp = res.encode("utf8") except: |