summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_add
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2023-06-13 08:45:42 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2023-06-13 08:45:42 +0000
commit979c74ccd2f767e02ee2c900c483580060c97226 (patch)
tree51fc274cc9caadf8ebab4e4033f19ce45ad36685 /usr.sbin/pkg_add
parent680eca9992868d1016e2eac11b72de8982c2dc7b (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