diff -r 9046db64ca39 -r cddef3bde924 src/hotspot/os/linux/perfMemory_linux.cpp --- a/src/hotspot/os/linux/perfMemory_linux.cpp Wed Sep 11 14:16:27 2019 +0200 +++ b/src/hotspot/os/linux/perfMemory_linux.cpp Wed Sep 11 14:16:30 2019 +0200 @@ -629,7 +629,7 @@ if (statbuf.st_ctime > oldest_ctime) { char* user = strchr(dentry->d_name, '_') + 1; - if (oldest_user != NULL) FREE_C_HEAP_ARRAY(char, oldest_user); + FREE_C_HEAP_ARRAY(char, oldest_user); oldest_user = NEW_C_HEAP_ARRAY(char, strlen(user)+1, mtInternal); strcpy(oldest_user, user);