mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-16 09:04:41 +02:00
8230398: Remove NULL checks before FREE_C_HEAP_ARRAY
Reviewed-by: dholmes, kbarrett, tschatzl
This commit is contained in:
parent
eafb888c18
commit
4b6f9ed07f
44 changed files with 86 additions and 183 deletions
|
@ -383,10 +383,8 @@ ClassPathImageEntry::~ClassPathImageEntry() {
|
|||
assert(_singleton == this, "must be");
|
||||
DEBUG_ONLY(_singleton = NULL);
|
||||
|
||||
if (_name != NULL) {
|
||||
FREE_C_HEAP_ARRAY(const char, _name);
|
||||
_name = NULL;
|
||||
}
|
||||
FREE_C_HEAP_ARRAY(const char, _name);
|
||||
|
||||
if (_jimage != NULL) {
|
||||
(*JImageClose)(_jimage);
|
||||
_jimage = NULL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue