[usr/src/usr.bin/compress/compress.c:324]: (error) Resource leak: ofp Source code is if ((ofp = fopen(out, "w")) == NULL || (nr != 0 && fwrite(buf, 1, nr, ofp) != nr)) { cwarn("%s", out); (void)fclose(ifp); return; }
A commit references this bug: Author: gonzo Date: Fri Jan 18 00:26:25 UTC 2019 New revision: 343127 URL: https://svnweb.freebsd.org/changeset/base/343127 Log: Fix descriptor/memory leak in compress(1) code This is mostly a style fix since the code in question is not called multiple times and doesn't have cummulative effect. PR: 204953 Submitted by: David Binderman <dcb314@hotmail.com> MFC after: 1 week Changes: head/usr.bin/compress/compress.c
Fix committed. Thanks for submitting.
A commit references this bug: Author: gonzo Date: Sun Feb 3 21:18:46 UTC 2019 New revision: 343722 URL: https://svnweb.freebsd.org/changeset/base/343722 Log: MFC r343127: Fix descriptor/memory leak in compress(1) code This is mostly a style fix since the code in question is not called multiple times and doesn't have cummulative effect. PR: 204953 Submitted by: David Binderman <dcb314@hotmail.com> Changes: _U stable/12/ stable/12/usr.bin/compress/compress.c