retr.c: Fix memory leak in retrieve_from_file()

Reported by: Coverity Bug 1188045
This commit is contained in:
Darshit Shah 2015-03-01 13:06:11 +05:30
parent 53b22974cb
commit cc9f76c5a4
1 changed files with 1 additions and 0 deletions

View File

@ -1023,6 +1023,7 @@ retrieve_from_file (const char *file, bool html, int *count)
char *error = url_error (url, url_err);
logprintf (LOG_NOTQUIET, "%s: %s.\n", url, error);
xfree (error);
iri_free (iri);
return URLERROR;
}