Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
binwalk
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fact-depend
binwalk
Commits
371f366d
Commit
371f366d
authored
Mar 27, 2015
by
devttys0
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed unused custom __del__ methods to prevent memory leaks
parent
253da78e
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
20 deletions
+0
-20
module.py
src/binwalk/core/module.py
+0
-3
plugin.py
src/binwalk/core/plugin.py
+0
-3
general.py
src/binwalk/modules/general.py
+0
-14
No files found.
src/binwalk/core/module.py
View file @
371f366d
...
@@ -245,9 +245,6 @@ class Module(object):
...
@@ -245,9 +245,6 @@ class Module(object):
except
AttributeError
as
e
:
except
AttributeError
as
e
:
pass
pass
def
__del__
(
self
):
return
None
def
__enter__
(
self
):
def
__enter__
(
self
):
return
self
return
self
...
...
src/binwalk/core/plugin.py
View file @
371f366d
...
@@ -108,9 +108,6 @@ class Plugins(object):
...
@@ -108,9 +108,6 @@ class Plugins(object):
self
.
parent
=
parent
self
.
parent
=
parent
self
.
settings
=
binwalk
.
core
.
settings
.
Settings
()
self
.
settings
=
binwalk
.
core
.
settings
.
Settings
()
def
__del__
(
self
):
pass
def
__enter__
(
self
):
def
__enter__
(
self
):
return
self
return
self
...
...
src/binwalk/modules/general.py
View file @
371f366d
...
@@ -124,20 +124,6 @@ class General(Module):
...
@@ -124,20 +124,6 @@ class General(Module):
def
reset
(
self
):
def
reset
(
self
):
pass
pass
#for fp in self.target_files:
# fp.reset()
def
__del__
(
self
):
self
.
_cleanup
()
def
__exit__
(
self
,
a
,
b
,
c
):
self
.
_cleanup
()
def
_cleanup
(
self
):
pass
#if hasattr(self, 'target_files'):
# for fp in self.target_files:
# fp.close()
def
_set_verbosity
(
self
):
def
_set_verbosity
(
self
):
'''
'''
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment