Skip to content

Commit 01d9280

Browse files
committedFeb 9, 2021
8261299: Use-after-free on failure path in LinuxPackage.c, getJvmLauncherLibPath
Reviewed-by: stuefe, herrick
1 parent a00b130 commit 01d9280

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎src/jdk.jpackage/linux/native/applauncher/LinuxPackage.c

+1
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,7 @@ char* getJvmLauncherLibPath(void) {
324324
&launcherLibPath);
325325
if (popenStatus) {
326326
free(launcherLibPath);
327+
launcherLibPath = NULL;
327328
goto cleanup;
328329
}
329330
}

0 commit comments

Comments
 (0)
Please sign in to comment.