--- a/src/hotspot/share/runtime/arguments.cpp Wed Sep 11 14:16:27 2019 +0200
+++ b/src/hotspot/share/runtime/arguments.cpp Wed Sep 11 14:16:30 2019 +0200
@@ -941,10 +941,8 @@
(void) JVMFlag::ccstrAtPut(flag, &value, origin);
// JVMFlag always returns a pointer that needs freeing.
FREE_C_HEAP_ARRAY(char, value);
- if (free_this_too != NULL) {
- // JVMFlag made its own copy, so I must delete my own temp. buffer.
- FREE_C_HEAP_ARRAY(char, free_this_too);
- }
+ // JVMFlag made its own copy, so I must delete my own temp. buffer.
+ FREE_C_HEAP_ARRAY(char, free_this_too);
return true;
}