Memory leak while hashing
Bug #517948 reported by
Max Khon
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
LinuxDC++ |
Invalid
|
Medium
|
Unassigned |
Bug Description
Looks like memory mappings are destroyed on Linux when the file descriptor is closed. This is not the case on FreeBSD.
Please see attached patch.
Changed in linuxdcpp: | |
status: | Incomplete → Invalid |
tags: |
added: memory-leak removed: memoryleak |
To post a comment you must log in.
The last mapping isn't destroyed. And according to the manpage this seems to be true with Linux also. Though I doubt it is 16M every time, only in the worst case scenario. Since if that one client was leaking 16M every file hashed, it would have run out of memory long ago.)
Upstream changes to the HashManager seem to have fixed this already, commit only needed to the Linuxdcpp-trunk.
--RZ