You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
int read_bytes = util::read_atmost_n(
fdopen(err_rd_pipe, "r"),
err_buf,
SP_MAX_ERR_BUF_SIZ);
close(err_rd_pipe);
The value returned by fdopen() is not closed. This causes memory leak.
If you call fclose(), it will close err_rd_pipe. So close(err_rd_pipe) is not necessary.
Activity
arun11299 commentedon Jul 5, 2024
@jsho000 Thank you for reporting. Can you provide a PR after testing the required changes ?
arun11299 commentedon Jul 9, 2024
Will be fixed with #104
Fix issues arun11299#103 and arun11299#104
Fix issues #103 and #104 (#106)