git-svn: trunk@1683
Nigel Horne authored on 2005/08/04 06:15:19... | ... |
@@ -15,7 +15,7 @@ |
15 | 15 |
* along with this program; if not, write to the Free Software |
16 | 16 |
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
17 | 17 |
*/ |
18 |
-static char const rcsid[] = "$Id: mbox.c,v 1.256 2005/07/30 15:41:16 nigelhorne Exp $"; |
|
18 |
+static char const rcsid[] = "$Id: mbox.c,v 1.257 2005/08/03 21:15:19 nigelhorne Exp $"; |
|
19 | 19 |
|
20 | 20 |
#if HAVE_CONFIG_H |
21 | 21 |
#include "clamav-config.h" |
... | ... |
@@ -3764,7 +3764,6 @@ getURL(struct arg *arg) |
3764 | 3764 |
* memory leak * here in getaddrinfo(), see |
3765 | 3765 |
* https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=139559 |
3766 | 3766 |
*/ |
3767 |
- |
|
3768 | 3767 |
if(curl_easy_perform(curl) != CURLE_OK) { |
3769 | 3768 |
#ifdef CURLOPT_ERRORBUFFER |
3770 | 3769 |
cli_warnmsg("URL %s failed to download: %s\n", url, errorbuffer); |
... | ... |
@@ -3774,8 +3773,8 @@ getURL(struct arg *arg) |
3774 | 3774 |
} |
3775 | 3775 |
|
3776 | 3776 |
fclose(fp); |
3777 |
- curl_slist_free_all(headers); |
|
3778 | 3777 |
curl_easy_cleanup(curl); |
3778 |
+ curl_slist_free_all(headers); |
|
3779 | 3779 |
|
3780 | 3780 |
return NULL; |
3781 | 3781 |
} |