mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-22 12:04:39 +02:00
8029070: memory leak in jmm_SetVMGlobal
Reviewed-by: kvn, dholmes
This commit is contained in:
parent
ed5c744803
commit
cfefbcebf5
4 changed files with 7 additions and 4 deletions
|
@ -376,6 +376,8 @@ class CommandLineFlags {
|
|||
|
||||
static bool ccstrAt(char* name, size_t len, ccstr* value);
|
||||
static bool ccstrAt(char* name, ccstr* value) { return ccstrAt(name, strlen(name), value); }
|
||||
// Contract: Flag will make private copy of the incoming value.
|
||||
// Outgoing value is always malloc-ed, and caller MUST call free.
|
||||
static bool ccstrAtPut(char* name, size_t len, ccstr* value, Flag::Flags origin);
|
||||
static bool ccstrAtPut(char* name, ccstr* value, Flag::Flags origin) { return ccstrAtPut(name, strlen(name), value, origin); }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue