On 11/8/20 5:11 PM, Michael Roth wrote: > We opendir("/sys/block") at the beginning of the function, but we never > close it prior to returning. > > Fixes: Coverity CID 1436130 > Fixes: fed3956429d5 ("qga: add implementation of guest-get-disks for Linux") > Reported-by: Peter Maydell <peter.mayd...@linaro.org> > Cc: Marc-André Lureau <marcandre.lur...@redhat.com> > Cc: Tomáš Golembiovský <tgole...@redhat.com> > Signed-off-by: Michael Roth <michael.r...@amd.com> > --- > qga/commands-posix.c | 3 +++ > 1 file changed, 3 insertions(+)
Reviewed-by: Philippe Mathieu-Daudé <phi...@redhat.com>