- previously any of the "skipping/replacing already added" checks matching
would leak memory due to early jump to exit
struct rpmtd_s td;
const char * arch = NULL;
const char * os = NULL;
- rpmds oldChk, newChk;
+ rpmds oldChk = NULL, newChk = NULL;
rpmds obsoletes;
rpmalKey pkgKey; /* addedPackages key */
int xx;
}
}
pi = rpmtsiFree(pi);
- oldChk = rpmdsFree(oldChk);
- newChk = rpmdsFree(newChk);
/* If newer NEVR was already added, exit now. */
if (ec)
ec = 0;
exit:
+ oldChk = rpmdsFree(oldChk);
+ newChk = rpmdsFree(newChk);
pi = rpmtsiFree(pi);
return ec;
}