lib/plist_fetch.c: fix a memleak in error path.

This commit is contained in:
Juan RP 2013-12-05 16:55:26 +01:00
parent 4403caa434
commit ae9363b620

View File

@ -101,6 +101,7 @@ open_archive_by_url(struct url *url)
if (archive_read_open(a, f, fetch_archive_open, fetch_archive_read,
fetch_archive_close)) {
free(f);
archive_read_finish(a);
return NULL;
}