lib/plist_fetch.c: fix a memleak in error path.
This commit is contained in:
parent
4403caa434
commit
ae9363b620
@ -101,6 +101,7 @@ open_archive_by_url(struct url *url)
|
|||||||
|
|
||||||
if (archive_read_open(a, f, fetch_archive_open, fetch_archive_read,
|
if (archive_read_open(a, f, fetch_archive_open, fetch_archive_read,
|
||||||
fetch_archive_close)) {
|
fetch_archive_close)) {
|
||||||
|
free(f);
|
||||||
archive_read_finish(a);
|
archive_read_finish(a);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user