mirror of
https://github.com/vgough/encfs.git
synced 2025-06-21 12:34:02 +02:00
unordered_map value type, is of std::pair<const Key, T>, hence a copy from const Key to Key is never shallow.
This commit is contained in:
parent
af64702dd0
commit
6985c8f64c
@ -127,14 +127,6 @@ void EncFS_Context::eraseNode(const char *path, FileNode *pl) {
|
|||||||
|
|
||||||
it->second.pop_front();
|
it->second.pop_front();
|
||||||
|
|
||||||
// if no more references to this file, remove the record all together
|
|
||||||
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);
|
|
||||||
storedName.assign(storedName.length(), '\0');
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace encfs
|
} // namespace encfs
|
||||||
|
Loading…
x
Reference in New Issue
Block a user