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:
Daniel Genrich
2008-07-11 14:11:55 +00:00
parent 2e144abfbd
commit 3fce5ba59a

View File

@@ -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