Signed-off-by: Sami Kerola <kerolasa@xxxxxx> --- proc/readproc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/proc/readproc.c b/proc/readproc.c index 162cbad..d641986 100644 --- a/proc/readproc.c +++ b/proc/readproc.c @@ -1214,6 +1214,8 @@ void closeproc(PROCTAB* PT) { if (PT->taskdir) closedir(PT->taskdir); memset(PT,'#',sizeof(PROCTAB)); free(PT); + free(src_buffer); + free(dst_buffer); } } -- 1.8.0 It seems the src and dst buffers either double freed or corrupted. My guess is that the later happens, but I am not sure where and why. Oh well, the whole library is such mess that it might not make sense to think too much what is wrong in that. Correct thing seems to be to nuke the library from orbit, and write replacement. -- Sami Kerola http://www.iki.fi/kerolasa/