[Pkg-utopia-maintainers] Bug#488604: network-manager: leaks 8 bytes of memory per second

Austin Clements amdragon+debbug at MIT.EDU
Mon Jun 30 01:33:19 UTC 2008


Package: network-manager
Version: 0.6.6-1
Severity: important

NetworkManager leaks about 8 bytes of RAM per second.  This was
recently fixed in Ubuntu and the patch applies cleanly against the
Debian package.

Index: network-manager.ubuntu/src/nm-dbus-net.c
===================================================================
--- network-manager.ubuntu.orig/src/nm-dbus-net.c
+++ network-manager.ubuntu/src/nm-dbus-net.c
@@ -64,16 +64,18 @@
 		escaped_ssid = nm_dbus_escape_object_path_item (nm_ap_get_essid (ap));
 		if (!escaped_ssid) {
 			g_free (escaped_dev);
 			continue;
 		}
 
 		compare_path = g_strdup_printf ("%s/%s/Networks/%s",
 		                                NM_DBUS_PATH_DEVICES, escaped_dev, escaped_ssid);
+		g_free(escaped_dev);
+		g_free(escaped_ssid);
 
 		len = strlen (compare_path);
 		if (strncmp (path, compare_path, len) == 0) {
 			/* Differentiate between 'foo' and 'foo-a' */
 			if (path[len] == '\0' || path[len] == '/') {
 				g_free (compare_path);
 				break;
 			}


-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.25-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages network-manager depends on:
ii  adduser                     3.108        add and remove users and groups
ii  dbus                        1.2.1-2      simple interprocess messaging syst
ii  dhcdbd                      3.0-4        D-Bus interface to the ISC DHCP cl
ii  hal                         0.5.11-2     Hardware Abstraction Layer
ii  ifupdown                    0.6.8+nmu1   high level tools to configure netw
ii  iproute                     20080417-1   networking and traffic control too
ii  iputils-arping              3:20071127-1 Tool to send ICMP echo requests to
ii  libc6                       2.7-12       GNU C Library: Shared libraries
ii  libdbus-1-3                 1.2.1-2      simple interprocess messaging syst
ii  libdbus-glib-1-2            0.76-1       simple interprocess messaging syst
ii  libgcrypt11                 1.4.1-1      LGPL Crypto library - runtime libr
ii  libglib2.0-0                2.16.3-2     The GLib library of C routines
ii  libgpg-error0               1.4-2        library for common error values an
ii  libhal1                     0.5.11-2     Hardware Abstraction Layer - share
ii  libiw29                     29-1         Wireless tools - library
ii  libnl1                      1.1-2        library for dealing with netlink s
ii  libnm-util0                 0.6.6-1      network management framework (shar
ii  lsb-base                    3.2-12       Linux Standard Base 3.2 init scrip
ii  wpasupplicant               0.6.3-2      Client support for WPA and WPA2 (I

Versions of packages network-manager recommends:
ii  network-manager-kde           1:0.2.2-1  KDE systray applet for controlling

-- debconf-show failed





More information about the Pkg-utopia-maintainers mailing list