findTrueFileName() memory leak fixed

This commit is contained in:
Damjan Adamic
2015-10-24 20:33:14 +02:00
parent 2a54bee20b
commit cd4d6afff8
+2
View File
@@ -772,10 +772,12 @@ char *findTrueFileName(const char *path)
strcat(result, res->d_name);
TRACE("\tfound: %s", res->d_name);
fileMap.insert(filemap_t:: value_type(path, result));
simu::closedir(dir);
return result;
}
}
}
simu::closedir(dir);
}
#endif
}