Memory leak in gnome-vfs-daemon
- From: "James \"Doc\" Livingston" <doclivingston gmail com>
- To: gnome-vfs-list gnome org
- Subject: Memory leak in gnome-vfs-daemon
- Date: Wed, 14 Nov 2007 00:12:10 +1100
Hi all,
I recently noticed that after getting Rhythmbox to import music from a
SMB share gnome-vfs-daemon was using about 60Mb of private dirty heap
space. After valgrind-ing it, it looks like GnomeVFSURIs are being
leaked quite often.
Looking at the code, it seems fairly obvious where the leak is, and the
patch below fixes it for me. I'm not subscribed to the list, so if there
are any questions could you CC me.
Cheers,
Index: daemon/daemon-connection.c
===================================================================
--- daemon/daemon-connection.c (revision 5416)
+++ daemon/daemon-connection.c (working copy)
@@ -1365,6 +1365,7 @@ connection_handle_get_file_info (DaemonC
info,
options,
context);
+ gnome_vfs_uri_unref (uri);
gnome_vfs_daemon_set_current_connection (NULL);
if (cancellation) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]