img.c line 153 Missing fclose if (r < 0) { fp_err("pgm header write failed, error %d", r); return r; } as well line 159 r = fwrite(img->data, 1, write_size, fd); if (r < write_size) { fp_err("short write (%d)", r); return -EIO; }
Created attachment 139760 [details] [review] img: Fix fd leaks Spotted by maddin200@aol.com
Attachment 139760 [details] pushed as 55b8306 - img: Fix fd leaks
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.