mirror of
https://github.com/openjdk/jdk.git
synced 2026-01-28 03:58:21 +00:00
8373928: 4 Dangling pointer defect groups in java.c
Reviewed-by: bpb, alanb, jpai, jwaters
This commit is contained in:
parent
8c82b58db9
commit
5dfda66e13
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1995, 2025, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1995, 2026, 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
|
||||
@ -1505,6 +1505,7 @@ InitializeJVM(JavaVM **pvm, JNIEnv **penv, InvocationFunctions *ifn)
|
||||
|
||||
r = ifn->CreateJavaVM(pvm, (void **)penv, &args);
|
||||
JLI_MemFree(options);
|
||||
options = NULL;
|
||||
return r == JNI_OK;
|
||||
}
|
||||
|
||||
@ -2203,6 +2204,7 @@ FreeKnownVMs()
|
||||
knownVMs[i].name = NULL;
|
||||
}
|
||||
JLI_MemFree(knownVMs);
|
||||
knownVMs = NULL;
|
||||
}
|
||||
|
||||
/*
|
||||
@ -2276,8 +2278,9 @@ ShowSplashScreen()
|
||||
(void)UnsetEnv(SPLASH_JAR_ENV_ENTRY);
|
||||
|
||||
JLI_MemFree(splash_jar_entry);
|
||||
splash_jar_entry = NULL;
|
||||
JLI_MemFree(splash_file_entry);
|
||||
|
||||
splash_file_entry = NULL;
|
||||
}
|
||||
|
||||
static const char* GetFullVersion()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user