aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-filter-driver.c
diff options
context:
space:
mode:
author0 <NotZed@Ximian.com>2001-10-31 02:22:14 +0800
committerMichael Zucci <zucchi@src.gnome.org>2001-10-31 02:22:14 +0800
commitaa4d57d3e41023f2e88571135275f20cdd3dc4e7 (patch)
treee8787120c4b110bc70a47ed5316c41d6a9525a10 /camel/camel-filter-driver.c
parentcccb17b0909b26e94abdf82a045d220e9dcc2cd7 (diff)
downloadgsoc2013-evolution-aa4d57d3e41023f2e88571135275f20cdd3dc4e7.tar.gz
gsoc2013-evolution-aa4d57d3e41023f2e88571135275f20cdd3dc4e7.tar.zst
gsoc2013-evolution-aa4d57d3e41023f2e88571135275f20cdd3dc4e7.zip
Make sure we unref the mimeparse when we're done (successfully). This was
2001-10-30 <NotZed@Ximian.com> * camel-filter-driver.c (camel_filter_driver_filter_mbox): Make sure we unref the mimeparse when we're done (successfully). This was leaking an fd every get-mail! :( * camel-lock-client.c (camel_lock_helper_init): Close all fd's above 2. svn path=/trunk/; revision=14468
Diffstat (limited to 'camel/camel-filter-driver.c')
-rw-r--r--camel/camel-filter-driver.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/camel/camel-filter-driver.c b/camel/camel-filter-driver.c
index 406bdf95b6..07216efb72 100644
--- a/camel/camel-filter-driver.c
+++ b/camel/camel-filter-driver.c
@@ -655,6 +655,7 @@ camel_filter_driver_filter_mbox (CamelFilterDriver *driver, const char *mbox, co
struct stat st;
int status;
off_t last = 0;
+ int ret = -1;
fd = open (mbox, O_RDONLY);
if (fd == -1) {
@@ -718,10 +719,8 @@ camel_filter_driver_filter_mbox (CamelFilterDriver *driver, const char *mbox, co
}
report_status (driver, CAMEL_FILTER_STATUS_END, 100, _("Complete"));
-
- g_free (source_url);
- return 0;
-
+
+ ret = 0;
fail:
g_free (source_url);
if (fd != -1)