Skip to content

Commit 10ad118

Browse files
mehradn7HyppoG
andauthored
closing repo before deleting temp files (#203)
Co-authored-by: HyppoG <[email protected]>
1 parent 912141d commit 10ad118

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

truffleHog/truffleHog.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,7 @@ def find_strings(git_url, since_commit=None, max_depth=1000000, printJson=False,
378378
output["clone_uri"] = git_url
379379
output["issues_path"] = output_dir
380380
if not repo_path:
381+
repo.close()
381382
shutil.rmtree(project_path, onerror=del_rw)
382383
return output
383384

0 commit comments

Comments
 (0)