Memory leak fix: br_find_exe() uses strdup() which uses malloc and therefore the returned string needs free'ing (Found with valgrind).
This commit is contained in:
@@ -1722,6 +1722,7 @@ void BLI_where_am_i(char *fullname, const char *name)
|
||||
path = br_find_exe( NULL );
|
||||
if (path) {
|
||||
strcpy(fullname, path);
|
||||
free(path);
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user