diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2020-01-30 09:03:11 -0500 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2020-01-30 09:03:11 -0500 |
commit | a208097c9091137908beaa1f1f261072df55d3fa (patch) | |
tree | 8818bfa6c19c4a43b7bb19431a442d3bdfa9a80e /src/rpath.c | |
parent | 7c2b1baad8434f9f7b19efe48719942cb3bce4cd (diff) | |
download | spmc-a208097c9091137908beaa1f1f261072df55d3fa.tar.gz |
SEAD - memory leaks
Diffstat (limited to 'src/rpath.c')
-rw-r--r-- | src/rpath.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 |