Skip to content

Commit

Permalink
lxc: free error object to avoid memory leak
Browse files Browse the repository at this point in the history
Detected by Coverity. Leak introduced in commit 9d201a5.

* src/lxc/lxc_driver.c: Clean up on failure.

Signed-off-by: Alex Jia <[email protected]>
  • Loading branch information
chuanchangjia authored and zippy2 committed Nov 9, 2011
1 parent b9338ac commit 0dbc10a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lxc/lxc_driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -1857,7 +1857,7 @@ static int lxcVmStart(virConnectPtr conn,

if (err) {
virSetError(err);
virResetError(err);
virFreeError(err);
}

return rc;
Expand Down

0 comments on commit 0dbc10a

Please sign in to comment.