Re: [libvirt PATCH] tests: Fix fd leaks in virpcivpdtest

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2/10/22 15:32, Jiri Denemark wrote:
> Tests testVirPCIVPDReadVPDBytes and testVirPCIVPDParseFullVPDInvalid
> failed to properly close open fildescriptors in some cases. Let's fix it
> by switching to VIR_AUTOCLOSE in the whole file.
> 
> Signed-off-by: Jiri Denemark <jdenemar@xxxxxxxxxx>
> ---
>  tests/virpcivpdtest.c | 23 ++++++++---------------
>  1 file changed, 8 insertions(+), 15 deletions(-)

Reviewed-by: Michal Privoznik <mprivozn@xxxxxxxxxx>

Michal




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux