8261299: Use-after-free on failure path in LinuxPackage.c, getJvmLauncherLibPath

Reviewed-by: stuefe, herrick
This commit is contained in:
Aleksey Shipilev 2021-02-09 17:46:18 +00:00
parent a00b13055a
commit 01d928080a

View File

@ -324,6 +324,7 @@ char* getJvmLauncherLibPath(void) {
&launcherLibPath);
if (popenStatus) {
free(launcherLibPath);
launcherLibPath = NULL;
goto cleanup;
}
}