mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
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:
parent
ada9e157a2
commit
ee1d6d91d1
@ -1026,7 +1026,6 @@ void
|
||||
virTypedParamsFree(virTypedParameterPtr params,
|
||||
int nparams)
|
||||
{
|
||||
virResetLastError();
|
||||
virTypedParamsClear(params, nparams);
|
||||
VIR_FREE(params);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user