mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 12:35:17 +00: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) {
|
||||
virSetError(err);
|
||||
virResetError(err);
|
||||
virFreeError(err);
|
||||
}
|
||||
|
||||
return rc;
|
||||
|
Loading…
x
Reference in New Issue
Block a user