提交 0dbc10a8 编写于 作者: A Alex Jia 提交者: Michal Privoznik

lxc: free error object to avoid memory leak

Detected by Coverity. Leak introduced in commit 9d201a5c.

* src/lxc/lxc_driver.c: Clean up on failure.
Signed-off-by: NAlex Jia <ajia@redhat.com>
上级 b9338ac8
...@@ -1857,7 +1857,7 @@ cleanup: ...@@ -1857,7 +1857,7 @@ cleanup:
if (err) { if (err) {
virSetError(err); virSetError(err);
virResetError(err); virFreeError(err);
} }
return rc; return rc;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册