diff --git a/examples/domtop/domtop.c b/examples/domtop/domtop.c index 7661057b125d408d7e586bc799ab8989f29fca3b..4ac7889221cd417645e4fcc65d457ceac8b0530c 100644 --- a/examples/domtop/domtop.c +++ b/examples/domtop/domtop.c @@ -334,12 +334,8 @@ do_top(virConnectPtr conn, ret = 0; cleanup: - if (max_id > 0) { - if (now_nparams > 0) - virTypedParamsFree(now_params, now_nparams * max_id); - if (then_nparams > 0) - virTypedParamsFree(then_params, then_nparams * max_id); - } + virTypedParamsFree(now_params, now_nparams * max_id); + virTypedParamsFree(then_params, then_nparams * max_id); if (dom) virDomainFree(dom); return ret;