]> git.proxmox.com Git - grub2.git/commit
grub-probe: restructure code to make static analysis easier
authorAndrei Borzenkov <arvidjaar@gmail.com>
Fri, 19 Jun 2015 17:47:43 +0000 (20:47 +0300)
committerAndrei Borzenkov <arvidjaar@gmail.com>
Fri, 19 Jun 2015 17:47:43 +0000 (20:47 +0300)
commit03f1f24e37d59e79b6c011cb51bab215cc7ec9cd
tree4cbf2adac19055b0668512cbba7907c66e093252
parentfbdd37e7f947ae39208ce0b6f0dd17e958cd5b8e
grub-probe: restructure code to make static analysis easier

Current code in probe() could not be verified to not contain memory leaks.
Restructure code and ensure grub_device_close is always called at the end of
loop.

Calms down Coverity scan.
CID: 73739
util/grub-probe.c