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.
This commit is contained in:
Jiri Denemark 2013-02-18 15:07:48 +01:00
parent ada9e157a2
commit ee1d6d91d1

View File

@ -1026,7 +1026,6 @@ void
virTypedParamsFree(virTypedParameterPtr params,
int nparams)
{
virResetLastError();
virTypedParamsClear(params, nparams);
VIR_FREE(params);
}