From: Jiri Denemark Date: Mon, 18 Feb 2013 14:07:48 +0000 (+0100) Subject: Avoid resetting errors in virTypedParamsFree X-Git-Tag: v1.0.3-rc1~89 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ee1d6d91d1fcf002914cf80fc8a59ddf107dd20f;p=thirdparty%2Flibvirt.git 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. --- diff --git a/src/util/virtypedparam.c b/src/util/virtypedparam.c index ae2855a660..c19632177e 100644 --- a/src/util/virtypedparam.c +++ b/src/util/virtypedparam.c @@ -1026,7 +1026,6 @@ void virTypedParamsFree(virTypedParameterPtr params, int nparams) { - virResetLastError(); virTypedParamsClear(params, nparams); VIR_FREE(params); }