! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
memory leak
Status:
CLOSED: FIXED
Product:
Xfce4-netload-plugin
Component:
General

Comments

Description Andreas J. Guelzow 2005-05-17 15:46:48 CEST
In panel-plugin/wormulon/linux.c in the function checkinterface the system
function if_nameindex() is called to obtain a listing of interface names.
According to the documentation for if_nameindex, the array returned by
if_nameindex is supposed to be freed by calling if_freenameindex. This code
appears to fail to do this.
Comment 1 Bernhard Walle 2005-05-17 19:50:32 CEST
Fixed in CVS. Release 0.3.2 should follow soon.

Just for interest: How did you find this bug?
Comment 2 Andreas J. Guelzow 2005-05-17 20:57:56 CEST
I like reading source code. :-)

Seriously, for the modemlights plugin I needed to figure out how to determine
whether ppp0 was up. Since the netload plugin was clearly doing that, I browsed
through its code, and found its use of if_nameindex(). I then checked the
documentation to see whetehr I can use that...

So it's not as if I noticed some strange behaviour. That's why I set severity
and   priority to low. (Well for teh latter I also checked that the code was
only called once.)  

Bug #971

Reported by:
Andreas J. Guelzow
Reported on: 2005-05-17
Last modified on: 2012-01-13

People

Assignee:
Bernhard Walle
CC List:
1 user

Version

Version:
0.4.0 or older
Target Milestone:
0.4.0 or older

Attachments

Additional information