xbps-repo: fix a memleak in the 'add' target.

This commit is contained in:
Juan RP 2010-12-24 05:43:00 +01:00
parent 57453d1926
commit 5b101eae2b

View File

@ -228,6 +228,8 @@ register_repository(const char *uri)
idxstr, rpi->pkgidxver, rpi->totalpkgs);
out:
if (rpi->pkgidxver != NULL)
free(rpi->pkgidxver);
if (rpi != NULL)
free(rpi);
if (plist != NULL)