diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2022-02-16 10:46:03 -0500 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2022-02-16 10:46:03 -0500 |
commit | 50103c29be30e073f9dd68dc248c7586cffa1d1b (patch) | |
tree | c71ca5afdd7e8371e6e4ef234aa736a24c49aeba | |
parent | 2a37315a73fa23eb4fdd024a59c2845f85f1632e (diff) | |
download | cleanpath-50103c29be30e073f9dd68dc248c7586cffa1d1b.tar.gz |
--all to emit eval-friendly output
* To view as a list (previous behavior) use --all-list
* Fix minor branch leak(s)
-rw-r--r-- | src/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -262,7 +262,7 @@ int main(int argc, char *argv[], char *arge[]) { // Don't touch exported functions if (!strncmp(key, "BASH_FUNC_", strlen("BASH_FUNC_")) || !strncmp(path->data, "()", strlen("()"))) { - free(path); + cleanpath_free(path); free(key); continue; } @@ -289,7 +289,7 @@ int main(int argc, char *argv[], char *arge[]) { free(data); } free(key); - free(path); + cleanpath_free(path); } for (size_t i = 0; i < dcount; i++) { |