RFR: 8311645: Memory leak in jspawnhelper spawnChild after JDK-8307990

Jenny Shivayogi duke at openjdk.org
Mon Jul 10 18:27:21 UTC 2023


On Mon, 10 Jul 2023 11:12:36 GMT, Aleksey Shipilev <shade at openjdk.org> wrote:

>> Free-ing 'buf' before two conditional return statements introduced by JDK-8307990
>
> src/java.base/unix/native/libjava/ProcessImpl_md.c line 575:
> 
>> 573:         writeFully(c->childenv[1], buf, bufsize) != bufsize) {
>> 574:         free(buf);
>> 575: 	return -1;
> 
> Same here.

Thanks for that. Will do

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/14809#discussion_r1258490292


More information about the core-libs-dev mailing list