From a208097c9091137908beaa1f1f261072df55d3fa Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Thu, 30 Jan 2020 09:03:11 -0500 Subject: SEAD - memory leaks --- src/rpath.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/rpath.c') diff --git a/src/rpath.c b/src/rpath.c index 04d810e..108e3f2 100644 --- a/src/rpath.c +++ b/src/rpath.c @@ -210,7 +210,7 @@ char *rpath_autodetect(const char *filename) { // Change directory to the requested root chdir(start); - char *visit = calloc(PATH_MAX, sizeof(char)); // Current directory + char *visit = NULL; // Current directory char tmp[PATH_MAX]; // Current directory with lib directory appended char relative[PATH_MAX]; // Generated relative path to lib directory char sep[2]; // Holds the platform's directory separator -- cgit