Skip to content
Snippets Groups Projects
Commit b1b9ab1c authored by Michael Roth's avatar Michael Roth
Browse files

qga: fix missing closedir() in qmp_guest_get_disks()


We opendir("/sys/block") at the beginning of the function, but we never
close it prior to returning.

Fixes: Coverity CID 1436130
Fixes: fed39564 ("qga: add implementation of guest-get-disks for Linux")
Reported-by: default avatarPeter Maydell <peter.maydell@linaro.org>
Cc: Marc-André Lureau <marcandre.lureau@redhat.com>
Cc: Tomáš Golembiovský <tgolembi@redhat.com>
Reviewed-by: default avatarPhilippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: default avatarMichael Roth <michael.roth@amd.com>
parent 3493c36f
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment