mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-24 04:12:20 +00:00
phyp: Resolve Coverity FORWARD_NULL
Commit id 'cd490086' added a VIR_FORCE_CLOSE of the 'sock', but it was after the VIR_FREE() of phyp_driver, resulting in a possible/likely NULL dereference. Signed-off-by: John Ferlan <jferlan@redhat.com>
This commit is contained in:
parent
c50c664de5
commit
78f1aca076
@ -1249,9 +1249,8 @@ phypConnectClose(virConnectPtr conn)
|
|||||||
virObjectUnref(phyp_driver->xmlopt);
|
virObjectUnref(phyp_driver->xmlopt);
|
||||||
phypUUIDTable_Free(phyp_driver->uuid_table);
|
phypUUIDTable_Free(phyp_driver->uuid_table);
|
||||||
VIR_FREE(phyp_driver->managed_system);
|
VIR_FREE(phyp_driver->managed_system);
|
||||||
VIR_FREE(phyp_driver);
|
|
||||||
|
|
||||||
VIR_FORCE_CLOSE(phyp_driver->sock);
|
VIR_FORCE_CLOSE(phyp_driver->sock);
|
||||||
|
VIR_FREE(phyp_driver);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user