diff --git a/src/lxc/lxc_driver.c b/src/lxc/lxc_driver.c index a1d0a7ce8fce4944bee00f614d265bfbee8fb15e..24721f7b5e716b1ccf8c167ea30603250c1da8b4 100644 --- a/src/lxc/lxc_driver.c +++ b/src/lxc/lxc_driver.c @@ -1857,7 +1857,7 @@ cleanup: if (err) { virSetError(err); - virResetError(err); + virFreeError(err); } return rc;