diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2023-06-13 08:45:42 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2023-06-13 08:45:42 +0000 |
commit | 979c74ccd2f767e02ee2c900c483580060c97226 (patch) | |
tree | 51fc274cc9caadf8ebab4e4033f19ce45ad36685 /usr.sbin/pkg_add | |
parent | 680eca9992868d1016e2eac11b72de8982c2dc7b (diff) |
Fix FILE leak in error path.
If flowf is NULL then fclose(spif) must be called.
Split up the error check from if (spif == NULL || flowf == NULL) to
individual checks since that is easier to read.
Noticed by markus@, OK tb@
Diffstat (limited to 'usr.sbin/pkg_add')
0 files changed, 0 insertions, 0 deletions