提交 ee1d6d91 编写于 作者: J Jiri Denemark

Avoid resetting errors in virTypedParamsFree

The function does not report any errors so there should be no need too
reset an existing error first. Moreover, virTypedParamsFree is mostly
called in cleanup phase where it has the potential to reset any useful
reported earlier.
上级 ada9e157
...@@ -1026,7 +1026,6 @@ void ...@@ -1026,7 +1026,6 @@ void
virTypedParamsFree(virTypedParameterPtr params, virTypedParamsFree(virTypedParameterPtr params,
int nparams) int nparams)
{ {
virResetLastError();
virTypedParamsClear(params, nparams); virTypedParamsClear(params, nparams);
VIR_FREE(params); VIR_FREE(params);
} }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册