diff --git a/src/phyp/phyp_driver.c b/src/phyp/phyp_driver.c index c558c48d48..ec0fde3c1e 100644 --- a/src/phyp/phyp_driver.c +++ b/src/phyp/phyp_driver.c @@ -1249,9 +1249,8 @@ phypConnectClose(virConnectPtr conn) virObjectUnref(phyp_driver->xmlopt); phypUUIDTable_Free(phyp_driver->uuid_table); VIR_FREE(phyp_driver->managed_system); - VIR_FREE(phyp_driver); - VIR_FORCE_CLOSE(phyp_driver->sock); + VIR_FREE(phyp_driver); return 0; }