mirror of
https://github.com/opentx/opentx.git
synced 2025-07-24 08:45:24 +03:00
findTrueFileName() memory leak fixed
This commit is contained in:
parent
2a54bee20b
commit
cd4d6afff8
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue