[PATCH] node_device: fix leak of DIR*

Ján Tomko jtomko at redhat.com
Wed Oct 28 15:12:12 UTC 2020

On a Tuesday in 2020, Laine Stump wrote:
>Commit 53aec799fa31 introduced the function udevGetVDPACharDev(),
>which scans a directory using virDirOpenIfExists() and
>virDirRead(). It unfortunately forgets to close the DIR* when it is
>finished with it. This patch fixes that omission.
>Signed-off-by: Laine Stump <laine at redhat.com>
> src/node_device/node_device_udev.c | 3 +++
> 1 file changed, 3 insertions(+)

Reviewed-by: Ján Tomko <jtomko at redhat.com>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20201028/578d97c9/attachment-0001.sig>

More information about the libvir-list mailing list