mirror of
https://github.com/vgough/encfs.git
synced 2024-11-25 17:33:19 +01:00
The string copy will not be shallow, due to undordere_map returning a const std::string.
This commit is contained in:
parent
6ad5cd4225
commit
4033ca85d2
@ -129,11 +129,7 @@ void EncFS_Context::eraseNode(const char *path, FileNode *pl) {
|
|||||||
|
|
||||||
// if no more references to this file, remove the record all together
|
// if no more references to this file, remove the record all together
|
||||||
if (it->second.empty()) {
|
if (it->second.empty()) {
|
||||||
// attempts to make use of shallow copy to clear memory used to hold
|
|
||||||
// unencrypted filenames.. not sure this does any good..
|
|
||||||
std::string storedName = it->first;
|
|
||||||
openFiles.erase(it);
|
openFiles.erase(it);
|
||||||
storedName.assign(storedName.length(), '\0');
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user