resolvd: fix leaks of line and fp
authortb <tb@openbsd.org>
Fri, 9 Dec 2022 18:22:35 +0000 (18:22 +0000)
committertb <tb@openbsd.org>
Fri, 9 Dec 2022 18:22:35 +0000 (18:22 +0000)
commit8475ebac2505d97cb3bdff76dc6b72401d329e63
tree70e373beeac80a133c12e36bcff1db5eed76fa2c
parent6f6c5cbbb8ab46e1157f5706bc5fbe2966166720
resolvd: fix leaks of line and fp

In case asprintf() fails or the iov overflows, the file and the line read
would be leaked.

also noted by otto
ok deraadt millert
sbin/resolvd/resolvd.c