From ae9363b62054c5f7f90069ceae6ca1c2fba234fb Mon Sep 17 00:00:00 2001 From: Juan RP Date: Thu, 5 Dec 2013 16:55:26 +0100 Subject: [PATCH] lib/plist_fetch.c: fix a memleak in error path. --- lib/plist_fetch.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/plist_fetch.c b/lib/plist_fetch.c index d87f5fa6..a3fe30bc 100644 --- a/lib/plist_fetch.c +++ b/lib/plist_fetch.c @@ -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; }