mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-22 16:26:05 +00:00
8015299: Memory leak in jdk/src/solaris/bin/java_md_solinux.c
Reviewed-by: martin, dholmes, chegar, ksrini
This commit is contained in:
parent
9e918d6fbc
commit
1e5fd0d595
@ -649,9 +649,9 @@ CreateExecutionEnvironment(int *pargc, char ***pargv,
|
||||
&& (dmpath == NULL) /* data model specific variables not set */
|
||||
#endif /* __solaris__ */
|
||||
) {
|
||||
|
||||
JLI_MemFree(newargv);
|
||||
JLI_MemFree(new_runpath);
|
||||
return;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@ -935,7 +935,7 @@ SetExecname(char **argv)
|
||||
char buf[PATH_MAX+1];
|
||||
int len = readlink(self, buf, PATH_MAX);
|
||||
if (len >= 0) {
|
||||
buf[len] = '\0'; /* readlink doesn't nul terminate */
|
||||
buf[len] = '\0'; /* readlink(2) doesn't NUL terminate */
|
||||
exec_path = JLI_StringDup(buf);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user