]> xenbits.xensource.com Git - libvirt.git/commitdiff
Avoid resetting errors in virTypedParamsFree
authorJiri Denemark <jdenemar@redhat.com>
Mon, 18 Feb 2013 14:07:48 +0000 (15:07 +0100)
committerJiri Denemark <jdenemar@redhat.com>
Tue, 19 Feb 2013 09:52:37 +0000 (10:52 +0100)
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

index ae2855a660387034118762e9bdaeeb1b0392ab2f..c19632177e1f8fbd8eb801c94ac3e98308da53d6 100644 (file)
@@ -1026,7 +1026,6 @@ void
 virTypedParamsFree(virTypedParameterPtr params,
                    int nparams)
 {
-    virResetLastError();
     virTypedParamsClear(params, nparams);
     VIR_FREE(params);
 }