Don't leak bpf on early return when YP isn't defined (NIS support)
MFC after: 1 week Reported by: cppcheck
This commit is contained in:
parent
c354522292
commit
c78c36cd9c
@ -239,6 +239,8 @@ int blen;
|
||||
warnx("could not close %s", bootpfile);
|
||||
return(1);
|
||||
#else
|
||||
if (fclose(bpf))
|
||||
warnx("could not close %s", bootpfile);
|
||||
return(0); /* ENOTSUP */
|
||||
#endif
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user