This fixes a SIGSEGV when tree was invoked with a non-existent directory as the Nth argument:
$ tree foo nonexistent
foo
└── bar
nonexistent
Segmentation fault (core dumped)
There are a few places where free_dir is used in a loop not clearing the pointer in between iterations. Fix them all.
Signed-off-by: Erik Skultety eskultet@redhat.com
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4