mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 19:32:19 +00:00
util: Fix memory leak in virPCIProbeStubDriver
Since 9ea90206, @drvpath could be overwritten if we jumped to recheck Found by Coverity. Signed-off-by: John Ferlan <jferlan@redhat.com> Reviewed-by: Peter Krempa <pkrempa@redhat.com>
This commit is contained in:
parent
52e3c2b480
commit
16818ad4a3
@ -1018,6 +1018,7 @@ virPCIProbeStubDriver(virPCIStubDriver driver)
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
VIR_FREE(drvpath);
|
||||
goto recheck;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user