diff options
Diffstat (limited to 'libnetdata')
-rw-r--r-- | libnetdata/arrayalloc/arrayalloc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libnetdata/arrayalloc/arrayalloc.c b/libnetdata/arrayalloc/arrayalloc.c index 82bfa42950..bdf1384d49 100644 --- a/libnetdata/arrayalloc/arrayalloc.c +++ b/libnetdata/arrayalloc/arrayalloc.c @@ -317,7 +317,8 @@ void arrayalloc_freez(ARAL *ar, void *ptr) { // free it if(ar->internal.mmap) { munmap(page->data, page->size); - unlink(page->filename); + if (unlikely(unlink(page->filename) == 1)) + error("Cannot delete file '%s'", page->filename); freez((void *)page->filename); } else |