xbps-repo: fix a memleak in the 'add' target.
This commit is contained in:
parent
57453d1926
commit
5b101eae2b
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user