GNOME Bugzilla – Bug 556910
[fam-helper.c:223]: Memory leak: sub
Last modified: 2008-10-24 04:04:48 UTC
Please describe the problem: I have checked out the latest sources through SVN. In the file glib/gio/fam-helper.c there is this code: sub = g_new0 (fam_sub, 1); sub->pathname = g_strdup (pathname); sub->directory = directory; sub->user_data = user_data; G_LOCK (fam_connection); /* We need to queue up incoming messages to avoid blocking on write * if there are many monitors being canceled */ fam_do_iter_unlocked (); if (fam_connection == NULL) { G_UNLOCK (fam_connection); return NULL; } So if fam_connection is NULL, the variable sub will not be deallocated Steps to reproduce: Actual results: Expected results: Does this happen every time? Other information:
2008-10-24 Matthias Clasen <mclasen@redhat.com> Bug 556910 – [fam-helper.c:223]: Memory leak: sub * fam/fam-helper.c: Fix a memory leak and formatting issues. Reported by Daniel Marjamäki