raster pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=b944fc7c9bb4016ed54d440759ae463aec8404ee
commit b944fc7c9bb4016ed54d440759ae463aec8404ee Author: Carsten Haitzler (Rasterman) <ras...@rasterman.com> Date: Fri Jul 28 21:12:57 2017 +0900 eina evlog debugging - when freeing debug buf with mmap 0 size after munmap would not munmap the memory with a size of 0... so zero the size after the munmap. found by PVS studio @fix --- src/lib/eina/eina_evlog.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/eina/eina_evlog.c b/src/lib/eina/eina_evlog.c index dca1e22c32..90af6104a7 100644 --- a/src/lib/eina/eina_evlog.c +++ b/src/lib/eina/eina_evlog.c @@ -111,14 +111,14 @@ static void free_buf(Eina_Evlog_Buf *b) { if (!b->buf) return; - b->size = 0; - b->top = 0; # ifdef HAVE_MMAP munmap(b->buf, b->size); # else free(b->buf); # endif b->buf = NULL; + b->size = 0; + b->top = 0; } static inline void * --