src/hotspot/os/bsd/perfMemory_bsd.cpp
changeset 58084 cddef3bde924
parent 55733 9cfb9387a9e8
child 58679 9c3209ff7550
--- a/src/hotspot/os/bsd/perfMemory_bsd.cpp	Wed Sep 11 14:16:27 2019 +0200
+++ b/src/hotspot/os/bsd/perfMemory_bsd.cpp	Wed Sep 11 14:16:30 2019 +0200
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2001, 2018, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2001, 2019, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -591,7 +591,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);