* lib/javacomp.c (execute_and_read_line): Upon failure, close the stream
and wait for the child process to terminate.
+2025-05-01 Bruno Haible <bruno@clisp.org>
+
+ javacomp: Fix resource leak.
+ * lib/javacomp.c (execute_and_read_line): Upon failure, close the stream
+ and wait for the child process to terminate.
+
2025-04-30 Bruno Haible <bruno@clisp.org>
New module hashcode-string1.
if (linelen == (size_t)(-1))
{
error (0, 0, _("%s subprocess I/O error"), progname);
+ fclose (fp);
+ wait_subprocess (child, progname, true, false, true, false, NULL);
return NULL;
}
if (linelen > 0 && line[linelen - 1] == '\n')