提交 9c0f753b 编写于 作者: J jzavgren

8015299: Memory leak in jdk/src/solaris/bin/java_md_solinux.c

Reviewed-by: martin, dholmes, chegar, ksrini
上级 87f4094d
......@@ -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);
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册