mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
lxc: free error object to avoid memory leak
Detected by Coverity. Leak introduced in commit 9d201a5
.
* src/lxc/lxc_driver.c: Clean up on failure.
Signed-off-by: Alex Jia <ajia@redhat.com>
This commit is contained in:
parent
b9338ac828
commit
0dbc10a89e
@ -1857,7 +1857,7 @@ cleanup:
|
|||||||
|
|
||||||
if (err) {
|
if (err) {
|
||||||
virSetError(err);
|
virSetError(err);
|
||||||
virResetError(err);
|
virFreeError(err);
|
||||||
}
|
}
|
||||||
|
|
||||||
return rc;
|
return rc;
|
||||||
|
Loading…
Reference in New Issue
Block a user