From ee1d6d91d1fcf002914cf80fc8a59ddf107dd20f Mon Sep 17 00:00:00 2001 From: Jiri Denemark Date: Mon, 18 Feb 2013 15:07:48 +0100 Subject: [PATCH] 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. --- src/util/virtypedparam.c | 1 - 1 file changed, 1 deletion(-) 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); }