Your message dated Thu, 01 Nov 2012 12:00:30 +0100
with message-id <[email protected]>
and subject line Re: xfce4-session: Possibly memory leak in xfsm-legacy.c
has caused the Debian Bug report #692016,
regarding xfce4-session: Possibly memory leak in xfsm-legacy.c
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
692016: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=692016
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: xfce4-session
Version: 4.10.0-1
Severity: minor
Tags: upstream
Hi,
I checked xfce4-session with cppcheck and it noticed a possible leak
in xfce4-session/xfsm-legacy.c in the 4.10.0 (experimental) version.
The leak appears to be happening in an inner loop[0], but given the
name of the file (legacy) it is possibly a minor problem.
~Niels
[0] So a leak based on the number of windows ("screens" * number of
windows in that "screen").
--- xfce4-session/xfsm-legacy.c.orig 2012-11-01 11:23:53.228575912 +0100
+++ xfce4-session/xfsm-legacy.c 2012-11-01 11:28:37.624583205 +0100
@@ -306,8 +306,8 @@
SmWindow *sm_window;
int n, i;
int type;
- gchar *wmclass1;
- gchar *wmclass2;
+ gchar *wmclass1 = NULL;
+ gchar *wmclass2 = NULL;
Window root, window;
XEvent ev;
int awaiting_replies = 0;
@@ -374,6 +374,8 @@
sm_window = sm_window_new (leader, n, type, wmclass1, wmclass2);
window_list = g_list_append (window_list, sm_window);
+ g_free(wmclass2);
+ g_free(wmclass1);
}
}
--- End Message ---
--- Begin Message ---
On 2012-11-01 11:36, Niels Thykier wrote:
> Package: xfce4-session
> Version: 4.10.0-1
> Severity: minor
> Tags: upstream
>
> Hi,
>
> I checked xfce4-session with cppcheck and it noticed a possible leak
> in xfce4-session/xfsm-legacy.c in the 4.10.0 (experimental) version.
>
> The leak appears to be happening in an inner loop[0], but given the
> name of the file (legacy) it is possibly a minor problem.
>
> ~Niels
>
> [0] So a leak based on the number of windows ("screens" * number of
> windows in that "screen").
The strings are g_strdup'ed and ownership appears to be passed to
sm_window_new. So I guess this is a false-positive, sorry for the noise.
~Niels
--- End Message ---
_______________________________________________
Pkg-xfce-devel mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-xfce-devel