Package: evolution-exchange
Version: 2.4.2-1.1
Followup-For: Bug #263278

I have prepared a patch backporting from CVS a fix provided by upstream for
memory leaks in exchange I reported.  The memory leaks were in two places,
here in the evolution-exchange and also in evolution-data-server.  I have
filed a separate bug & patch against evolution-data-server with the other
half of the fix.

http://bugzilla.gnome.org/attachment.cgi?id=58445&action=view


-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/dash
Kernel: Linux 2.6.14-1-686-smp
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages evolution-exchange depends on:
ii  evolution     2.4.2.1-1                  The groupware suite
ii  libart-2.0-2  2.3.17-1                   Library of functions for 2D graphi
ii  libatk1.0-0   1.10.3-1                   The ATK accessibility toolkit
ii  libaudiofile0 0.2.6-6                    Open-source version of SGI's audio
ii  libavahi-clie 0.6.4-2                    Avahi client library
ii  libavahi-comm 0.6.4-2                    Avahi common library
ii  libavahi-comp 0.6.4-2                    Avahi Howl compatibility library
ii  libbonobo2-0  2.10.1-1                   Bonobo CORBA interfaces library
ii  libbonoboui2- 2.10.1-2                   The Bonobo UI library
ii  libc6         2.3.5-12                   GNU C Library: Shared libraries an
ii  libcairo2     1.0.2-3                    The Cairo 2D vector graphics libra
ii  libcamel1.2-6 1.4.2.1-1.1                The Evolution MIME message handlin
ii  libcomerr2    1.38+1.39-WIP-2005.12.31-1 common error description library
ii  libdb4.2      4.2.52-23                  Berkeley v4.2 Database Libraries [
ii  libdbus-1-2   0.60-5                     simple interprocess messaging syst
ii  libebook1.2-5 1.4.2.1-1.1                Client library for evolution addre
ii  libecal1.2-3  1.4.2.1-1.1                Client library for evolution calen
ii  libedata-book 1.4.2.1-1.1                Backend library for evolution addr
ii  libedata-cal1 1.4.2.1-1.1                Backend library for evolution cale
ii  libedataserve 1.4.2.1-1.1                Utility library for evolution data
ii  libedataserve 1.4.2.1-1.1                GUI utility library for evolution 
ii  libesd0       0.2.36-3                   Enlightened Sound Daemon - Shared 
ii  libexchange-s 1.4.2.1-1.1                Backend library for evolution cale
ii  libfontconfig 2.3.2-1.1                  generic font configuration library
ii  libfreetype6  2.1.10-1                   FreeType 2 font engine, shared lib
ii  libgail-commo 1.8.8-1                    GNOME Accessibility Implementation
ii  libgail17     1.8.8-1                    GNOME Accessibility Implementation
ii  libgconf2-4   2.12.1-8                   GNOME configuration database syste
ii  libgcrypt11   1.2.2-1                    LGPL Crypto library - runtime libr
ii  libglade2-0   1:2.5.1-2                  library to load .glade files at ru
ii  libglib2.0-0  2.8.6-1                    The GLib library of C routines
ii  libgnome-keyr 0.4.6-2                    GNOME keyring services library
ii  libgnome2-0   2.12.0.1-4                 The GNOME 2 library - runtime file
ii  libgnomecanva 2.12.0-2                   A powerful object-oriented display
ii  libgnomeprint 2.12.1-3                   The GNOME 2.2 print architecture -
ii  libgnomeprint 2.12.1-2                   GNOME 2.2 print architecture User 
ii  libgnomeui-0  2.12.0-2                   The GNOME 2 libraries (User Interf
ii  libgnomevfs2- 2.12.2-5                   GNOME virtual file-system (runtime
ii  libgnutls11   1.0.16-14                  GNU TLS library - runtime library
ii  libgpg-error0 1.1-4                      library for common error values an
ii  libgtk2.0-0   2.8.10-1                   The GTK+ graphical user interface 
ii  libgtkhtml3.8 3.8.1-1                    HTML rendering/editing library - r
ii  libice6       6.9.0.dfsg.1-4             Inter-Client Exchange library
ii  libjpeg62     6b-11                      The Independent JPEG Group's JPEG 
ii  libkrb53      1.4.3-5                    MIT Kerberos runtime libraries
ii  libldap2      2.1.30-12                  OpenLDAP libraries
ii  liborbit2     1:2.12.4-1                 libraries for ORBit2 - a CORBA ORB
ii  libpango1.0-0 1.10.2-1                   Layout and rendering of internatio
ii  libpng12-0    1.2.8rel-5                 PNG library - runtime
ii  libpopt0      1.7-5                      lib for parsing cmdline parameters
ii  libsm6        6.9.0.dfsg.1-4             X Window System Session Management
ii  libsoup2.2-8  2.2.6-1                    an HTTP library implementation in 
ii  libtasn1-2    0.2.17-1                   Manage ASN.1 structures (runtime)
ii  libx11-6      6.9.0.dfsg.1-4             X Window System protocol client li
ii  libxcursor1   1.1.3-1                    X cursor management library
ii  libxext6      6.9.0.dfsg.1-4             X Window System miscellaneous exte
ii  libxi6        6.9.0.dfsg.1-4             X Window System Input extension li
ii  libxinerama1  6.9.0.dfsg.1-4             X Window System multi-head display
ii  libxml2       2.6.23.dfsg.1-0.1          GNOME XML library
ii  libxrandr2    6.9.0.dfsg.1-4             X Window System Resize, Rotate and
ii  libxrender1   1:0.9.0.2-1                X Rendering Extension client libra
ii  zlib1g        1:1.2.3-9                  compression library - runtime

evolution-exchange recommends no packages.

-- no debconf information
diff -urN ximian-connector-2.4.2.debian/addressbook/e-book-backend-exchange.c 
ximian-connector-2.4.2.memleak/addressbook/e-book-backend-exchange.c
--- ximian-connector-2.4.2.debian/addressbook/e-book-backend-exchange.c 
2005-10-21 08:51:33.000000000 -0300
+++ ximian-connector-2.4.2.memleak/addressbook/e-book-backend-exchange.c        
2006-01-31 08:04:21.000000000 -0400
@@ -565,6 +565,7 @@
 
        if (status != E2K_HTTP_MULTI_STATUS) {
                bepriv->connected = FALSE;
+               e2k_results_free (results, nresults);
                return GNOME_Evolution_Addressbook_OtherError;
        }
 
@@ -576,6 +577,7 @@
 
        if (!(access & MAPI_ACCESS_READ)) {
                bepriv->connected = FALSE;
+               e2k_results_free (results, nresults);
                return GNOME_Evolution_Addressbook_PermissionDenied;
        }
 
diff -urN ximian-connector-2.4.2.debian/debian/changelog 
ximian-connector-2.4.2.memleak/debian/changelog
--- ximian-connector-2.4.2.debian/debian/changelog      2006-01-31 
08:57:36.000000000 -0400
+++ ximian-connector-2.4.2.memleak/debian/changelog     2006-01-31 
08:29:35.000000000 -0400
@@ -1,3 +1,11 @@
+ximian-connector (2.4.2-1.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Backport memory leak fix from CVS:
+    http://bugzilla.gnome.org/attachment.cgi?id=58445&action=view
+
+ -- Ben Armstrong <[EMAIL PROTECTED]>  Tue, 31 Jan 2006 08:27:27 -0400
+
 ximian-connector (2.4.2-1) unstable; urgency=low
 
   * New upstream release
diff -urN ximian-connector-2.4.2.debian/mail/mail-stub-exchange.c 
ximian-connector-2.4.2.memleak/mail/mail-stub-exchange.c
--- ximian-connector-2.4.2.debian/mail/mail-stub-exchange.c     2005-10-21 
07:35:15.000000000 -0300
+++ ximian-connector-2.4.2.memleak/mail/mail-stub-exchange.c    2006-01-31 
08:10:14.000000000 -0400
@@ -577,12 +577,14 @@
                if (!background) {
                        got_folder_error (mfld, _("Could not open folder: 
Permission denied"));
                }
+               e2k_results_free (results, nresults);
                return FALSE;
        } else if (!E2K_HTTP_STATUS_IS_SUCCESSFUL (status)) {
                g_warning ("got_folder_props: %d", status);
                if (!background) {
                        got_folder_error (mfld, _("Could not open folder"));
                }
+               e2k_results_free (results, nresults);
                return FALSE;
        }
 
@@ -599,6 +601,7 @@
                if (!background) {
                        got_folder_error (mfld, _("Could not open folder: 
Permission denied"));
                }
+               e2k_results_free (results, nresults);
                return FALSE;
        }
        readonly = (mfld->access & (MAPI_ACCESS_MODIFY | 
MAPI_ACCESS_CREATE_CONTENTS)) == 0;
@@ -893,6 +896,8 @@
                                             &results, &nresults);
 
        if (!E2K_HTTP_STATUS_IS_SUCCESSFUL (status) || !nresults) {
+               if (nresults)
+                       e2k_results_free (results, nresults);
                g_warning ("got_sync_deleted_props: %d", status);
                return;
        }
@@ -907,6 +912,8 @@
        if (prop)
                visible_count = atoi (prop);
 
+       e2k_results_free (results, nresults);
+
        if (visible_count >= mfld->messages->len) {
                if (mfld->deleted_count == deleted_count)
                        return;

Reply via email to