mirror of
https://github.com/opentx/opentx.git
synced 2025-07-25 17:25:13 +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);
|
strcat(result, res->d_name);
|
||||||
TRACE("\tfound: %s", res->d_name);
|
TRACE("\tfound: %s", res->d_name);
|
||||||
fileMap.insert(filemap_t:: value_type(path, result));
|
fileMap.insert(filemap_t:: value_type(path, result));
|
||||||
|
simu::closedir(dir);
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
simu::closedir(dir);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue