aboutsummaryrefslogtreecommitdiffstats
path: root/camel/providers
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2000-06-02 14:34:58 +0800
committerDan Winship <danw@src.gnome.org>2000-06-02 14:34:58 +0800
commit7a5b5c31e4312fbf307c39b25d79a2610c5559ae (patch)
tree10d975896e1cc2373c64fdaac30eb0e1a937becd /camel/providers
parent9717e6f9efc0f5acfb0c15e576a703e02c0cd753 (diff)
downloadgsoc2013-evolution-7a5b5c31e4312fbf307c39b25d79a2610c5559ae.tar.gz
gsoc2013-evolution-7a5b5c31e4312fbf307c39b25d79a2610c5559ae.tar.zst
gsoc2013-evolution-7a5b5c31e4312fbf307c39b25d79a2610c5559ae.zip
Fun with purify.
* providers/pop3/camel-pop3-store.c (pop3_connect): free msg on success as well as failure. (camel_pop3_command_get_additional_data): free buf after reading the last line ("."). * providers/pop3/camel-pop3-folder.c (get_message_by_uid): free body data after creating the memstream from it (which will copy the data). * providers/mbox/camel-mbox-folder.c (mbox_finalize): free summary and index paths. * camel-data-wrapper.c (finalize): unref the stream, if it exists. svn path=/trunk/; revision=3381
Diffstat (limited to 'camel/providers')
-rw-r--r--camel/providers/mbox/camel-mbox-folder.c2
-rw-r--r--camel/providers/pop3/camel-pop3-folder.c1
-rw-r--r--camel/providers/pop3/camel-pop3-store.c3
3 files changed, 6 insertions, 0 deletions
diff --git a/camel/providers/mbox/camel-mbox-folder.c b/camel/providers/mbox/camel-mbox-folder.c
index c663824301..56af83a98b 100644
--- a/camel/providers/mbox/camel-mbox-folder.c
+++ b/camel/providers/mbox/camel-mbox-folder.c
@@ -131,7 +131,9 @@ mbox_finalize (GtkObject *object)
CamelMboxFolder *mbox_folder = CAMEL_MBOX_FOLDER (object);
g_free (mbox_folder->folder_file_path);
+ g_free (mbox_folder->summary_file_path);
g_free (mbox_folder->folder_dir_path);
+ g_free (mbox_folder->index_file_path);
GTK_OBJECT_CLASS (parent_class)->finalize (object);
}
diff --git a/camel/providers/pop3/camel-pop3-folder.c b/camel/providers/pop3/camel-pop3-folder.c
index 45687e4f33..396bbc04f6 100644
--- a/camel/providers/pop3/camel-pop3-folder.c
+++ b/camel/providers/pop3/camel-pop3-folder.c
@@ -198,6 +198,7 @@ get_message_by_uid (CamelFolder *folder, const char *uid, CamelException *ex)
}
msgstream = camel_stream_mem_new_with_buffer (body, strlen (body));
+ g_free (body);
msg = camel_mime_message_new ();
camel_data_wrapper_construct_from_stream (CAMEL_DATA_WRAPPER (msg),
msgstream);
diff --git a/camel/providers/pop3/camel-pop3-store.c b/camel/providers/pop3/camel-pop3-store.c
index 4b4a4acbf7..813ab6eaf7 100644
--- a/camel/providers/pop3/camel-pop3-store.c
+++ b/camel/providers/pop3/camel-pop3-store.c
@@ -418,6 +418,7 @@ pop3_connect (CamelService *service, CamelException *ex)
g_free (msg);
pop3_disconnect (service, ex);
}
+ g_free (msg);
status = camel_pop3_command (store, &msg, "PASS %s",
service->url->passwd);
@@ -453,6 +454,7 @@ pop3_connect (CamelService *service, CamelException *ex)
pop3_disconnect (service, ex);
return FALSE;
}
+ g_free (msg);
service_class->connect (service, ex);
return TRUE;
@@ -613,6 +615,7 @@ camel_pop3_command_get_additional_data (CamelPop3Store *store,
memmove (buf, buf + 1, strlen (buf));
g_ptr_array_add (data, buf);
}
+ g_free (buf);
if (status == CAMEL_POP3_OK) {
/* Append an empty string to the end of the array
ns'>+3 * . update to version 4.4.0, changes:bsam2010-01-111-3/+3 * - Final try to resolve common directories issue by using @dirrmtry directivefluffy2009-12-222-0/+2 * - Fix handling of common directories in plistfluffy2009-12-222-0/+2 * The KDE FreeBSD team is proud to announce the release of KOffice2 suite for F...fluffy2009-12-227-344/+85 * For ports maintained by ports@FreeBSD.org, remove names and/ordougb2009-12-211-3/+0 * Chase math/gsl update,makc2009-12-023-2/+3 * The FreeBSD KDE is please to announce the release of KDE 4.3.4,miwi2009-12-021-3/+3 * - Chase relocation of net/mpich2thierry2009-11-281-3/+2 * The KDE FreeBSD team is proud to announce the release of KDE 4.3.3miwi2009-11-273-10/+40 * - Mark MAKE_JOBS_UNSAFEpav2009-11-201-0/+1 * . update to version 4.3.9;bsam2009-11-141-3/+3 * - Update to 0.1.27wen2009-10-192-4/+4 * Update to 9.2. Multiple vulnerabilities which could cause thehrs2009-10-151-3/+3 * Update to 8.1.7. Multiple vulnerabilities which could cause thehrs2009-10-151-3/+3 * Update to version 4.3.8.bsam2009-10-131-3/+3 * Update to 9.1.3.hrs2009-10-101-3/+3 * Chase SeaMonkey's upgrade to 1.1.18.thierry2009-09-102-5/+4 * Update to version 4.3.7.1.bsam2009-09-061-3/+3 * The FreeBSD KDE is please to announce the release of KDE 4.3.1,tabthorpe2009-09-022-4/+5 * - Switch SourceForge ports to the new File Release System: categories startin...amdmi32009-08-223-4/+4 * clean upmakc2009-08-081-3/+0 * The KDE FreeBSD team is proud to announce the release of KDE 4.3.0miwi2009-08-054-27/+113 * . update to version 4.3.6;bsam2009-08-051-3/+3 * -Repocopy devel/libtool15 -> libtool22 and libltdl15 -> libltdl22.mezz2009-08-032-2/+2 * - bump all port that indirectly depends on libjpeg and have not yet been bump...dinoex2009-07-319-3/+9 * Make the port IGNORE for OSVERSION>800079 since it can'tbsam2009-07-221-1/+7 * Update to version 4.3.5.bsam2009-07-201-3/+3 * - update to jpeg7dinoex2009-07-181-2/+2 * Upgrade SeaMonkey's FLP to 1.1.17.thierry2009-06-282-4/+4 * Upgrade to 10.0.3-2.thierry2009-06-224-83/+191 * Chase Code_Aster's upgrade.thierry2009-06-223-7/+7 * Upgrade to 1.16.0.thierry2009-06-224-321/+19 * This port installs the documentation files of Eficas (See the portthierry2009-06-227-0/+348 * Update to 8.1.6 and 9.1.2.hrs2009-06-182-6/+6 * The KDE FreeBSD team is pleased to announce KDE 4.2.4, the last bugfixmiwi2009-06-032-3/+19 * Update to version 4.3.4.bsam2009-06-011-3/+3 * Update to 9.1.1. Two critical vulnerabilities have been fixed:hrs2009-05-131-3/+3 * Update to 8.1.5. Two critical vulnerabilities have been fixed:hrs2009-05-131-3/+3 * Update KDE ports to 4.2.3makc2009-05-102-3/+21 * Update to version 4.3.3.bsam2009-05-041-3/+3 * - USE_APACHE=yes is deprecatedthierry2009-04-222-9/+5 * Update to version 4.3.2.bsam2009-04-031-3/+3 * The KDE FreeBSD team is proud to announce the release of KDE 4.2.2miwi2009-04-023-12/+26 * Add acroread9, Adobe Reader 9.1.0. For changes since Adobe Readerhrs2009-03-293-0/+19 * Update to 8.1.4. This version includes serious security fixes.hrs2009-03-291-3/+3 * Upgrade SeaMonkey's FLP to 1.1.15.thierry2009-03-232-4/+4 * Welcome to the new linux ports infrastructure which allows usingbsam2009-03-202-2/+2 * - Update to 0.1.24miwi2009-03-142-5/+4 * Update KDE to 4.2.1.makc2009-03-092-3/+19 * Update to version 4.3.1.bsam2009-03-081-3/+3 * Fix compilation with gcc-43.thierry2009-02-108-0/+87 * - Add all manpages for kde4-l10n*miwi2009-02-091-0/+39 * The KDE FreeBSD team is proud to announce the release of KDE 4.2.0miwi2009-02-093-125/+201 * Here is the long awaited 4.3.0 release. It includes enhancementsbsam2009-02-091-3/+3 * - Update download locationpav2009-02-011-1/+1 * - Update X.org ports to 7.4+ (few ports are more recent than the katamari).flz2009-01-241-1/+1 * Chase Aster's main tarball. No change.thierry2009-01-214-8/+9 * Upgrade to 9.4.0-2.thierry2009-01-213-19/+10 * The tarball has been silently rerolled. Full diff atthierry2009-01-212-4/+5 * Chase Code_Aster's version.thierry2009-01-151-2/+2 * Upgrade to 9.5.1.thierry2009-01-153-139/+288 * Upgrade Code_Aster to 9.4.0.thierry2009-01-157-143/+972 * - Upgrade to 2.3.5;thierry2009-01-152-9/+21 * - Upgrade to 1.15.0-1;thierry2009-01-154-24/+100 * kde@freebsd team is pleased to announce KDE 4.1.4, the last bugfix release in...makc2009-01-143-21/+214 * - Replace literal gfortran42 with , fix buildpav2009-01-131-2/+2 * Update to version 4.2.5.bsam2009-01-081-3/+3 * - Remove conditional checks for FreeBSD 5.x and olderpav2009-01-061-3/+0 * Upgrade SeaMonkey French Language Pack to 1.1.14.thierry2009-01-052-4/+4 * Obtain a new license key.thierry2009-01-032-3/+3 * Update to version 4.2.4.bsam2008-12-081-3/+3 * Upgrade SeaMonkey French Language Pack to 1.1.13.thierry2008-11-202-4/+4 * Update to version 4.2.3.bsam2008-11-101-3/+3 * Update to Adobe Reader 8.1.3.hrs2008-11-081-3/+3 * - Update to 4jadawin2008-11-054-63/+99 * Chase Code_Aster's tarball re-rolling (no change for homard).thierry2008-10-252-4/+4 * The main tarball has been rerolled, but the included components have notthierry2008-10-224-8/+8 * Update to version 4.2.2a -- bug fix release.bsam2008-10-071-3/+3 * Update to version 4.2.2.bsam2008-10-061-3/+3 * Upgrade Seamonkey's french language pack to 1.1.12.thierry2008-10-032-4/+4 * Update to version 4.2.1.bsam2008-09-241-3/+3 * Remove ports of Adobe Reader 7 and the localized versions because ofhrs2008-09-063-22/+0 * The KDE FreeBSD team is proud to announce the release of KDE 4.1.1miwi2008-09-032-8/+71 * The KDE FreeBSD team is proud to announce the releasemiwi2008-08-292-3/+6 * - Respect NOPORTDOCS, NOPORTEXAMPLESamdmi32008-08-242-269/+7 * Update CONFIGURE_ARGS for how we pass CONFIGURE_TARGET to configure script.rafan2008-08-212-2/+0 * Conversion from (now defunct) autoconf-2.61 to autoconf-2.62ade2008-08-202-2/+2 * - Add optional Gnome supporttabthorpe2008-08-192-3/+17 * The KDE FreeBSD team is proud to announce the releasemiwi2008-08-182-10/+66 * Update to version 4.2.0.bsam2008-08-131-3/+3 * - Fix categoriemiwi2008-08-101-1/+1 * The KDE FreeBSD team is proud to announce the release of KDE 4.1.0miwi2008-08-105-977/+312