Skip to content

Commit

Permalink
memory leak fix (unused code)
Browse files Browse the repository at this point in the history
  • Loading branch information
rivalsec committed Oct 7, 2023
1 parent 7218c9a commit 0fc460e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions pathbuster/pathbuster.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
preflight_iter = None
task_iter = None
preflight_samples = {} # for preflight results
results = [] # for workers results
err_table = dict()
uniq_locs = set()

Expand Down Expand Up @@ -158,7 +157,6 @@ def worker_process(url, parent, redirect_count = 0):
return

if result_valid(res):
results.append(res)
if conf.json_print:
lprint(res.to_json(conf.store_response))
else:
Expand Down Expand Up @@ -313,8 +311,6 @@ def fuzz(urls, paths, extensions, threads, ac=False ):

task_iter = work_prod(urls, paths, extensions, True)
start_thread_pool(threads, worker)
#return all found results
return results


def main():
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "hatchling.build"

[project]
name = "pathbuster"
version = "0.2.0"
version = "0.3.0"
authors = [
{ name="Vladimir Sopernikov" },
]
Expand Down

0 comments on commit 0fc460e

Please sign in to comment.