Maybe. However, the static analyser did not swear at others
Пн, 19 мая 2025 г. в 11:47, Quentin Schulz :
> Hi Anton,
>
> On 5/16/25 5:25 PM, ant.v.morya...@gmail.com wrote:
> > From: Anton Moryakov
> >
> > Prevent file descriptor leaks by properly closing 'fd' and 'new_fd'
> > when fstat() or w
Hi Anton,
On 5/16/25 5:25 PM, ant.v.morya...@gmail.com wrote:
From: Anton Moryakov
Prevent file descriptor leaks by properly closing 'fd' and 'new_fd'
when fstat() or write() operations fail.
- Added close(fd) before return in open_for_read() if fstat() fails.
- Added close(new_fd) before ret
From: Anton Moryakov
Prevent file descriptor leaks by properly closing 'fd' and 'new_fd'
when fstat() or write() operations fail.
- Added close(fd) before return in open_for_read() if fstat() fails.
- Added close(new_fd) before return in write_image() if write() fails.
- No close needed if open(
3 matches
Mail list logo