Fix resource leaks in watchdog.c.
authorTatsuo Ishii <ishii@sraoss.co.jp>
Mon, 9 Sep 2024 08:10:30 +0000 (17:10 +0900)
committerTatsuo Ishii <ishii@sraoss.co.jp>
Mon, 9 Sep 2024 08:10:30 +0000 (17:10 +0900)
commit8ce32bc4371ca2a0f1b5ed3b13526553b98adda9
tree09589f7293e5b65ebd249c0bda6941cb74836080
parent7eb878c5248151fe561310c78818c09aaa167c29
Fix resource leaks in watchdog.c.

These leaks were mostly brought in by commit 65dbbe7a0 "Add IPv6
support for hostname and heartbeat_hostname parameter."  Since the
commit was only for master branch, no backpatch is necessary.

Per Coverity (CID 1559737 and CID 1559734).
src/watchdog/watchdog.c