From 0e47d1269cc660d2b1451e76375b2d3545ce66f4 Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Sat, 29 Oct 2022 22:32:47 +0200 Subject: Malloc override (#437) * Add some malloc override mecanism, but missing c++ function overriding * Add c++ new/delete redirection too * Added support for libtbbmalloc_proxy --- src/tools/fileutils.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/tools/fileutils.c') diff --git a/src/tools/fileutils.c b/src/tools/fileutils.c index 67e8c652..04905c04 100755 --- a/src/tools/fileutils.c +++ b/src/tools/fileutils.c @@ -57,11 +57,8 @@ char* ResolveFile(const char* filename, path_collection_t* paths) } else strcpy(p, paths->paths[i]); strcat(p, filename); - if(FileExist(p, IS_FILE)) { - char p2[MAX_PATH]; - realpath(p, p2); - return box_strdup(p2); - } + if(FileExist(p, IS_FILE)) + return box_realpath(p, NULL); } return box_strdup(filename); //NULL; -- cgit 1.4.1