[PATCH 0/4] xprop: Free various allocated memory
Eirik Byrkjeflot Anonsen
eirik at eirikba.org
Tue May 19 10:22:04 PDT 2015
Some time late in 2014 I noticed that one of the processes using the most
memory on my system was called "xprop". I found this a bit surprising, so
I investigated and found that this particular tool generally didn't free
any of the memory it allocated. Which is usually not a problem, since it
just runs and exits. However, the -spy option makes it run forever, and it
seems something on my system is using that to monitor the properties on
the root window.
If I remember correctly, I had xprop running for a few hours under valgrind
on my system with this patch series applied. And valgrind had nothing to
complain about.
Eirik Byrkjeflot Anonsen (4):
Free the thunks used by Show_Prop
Free the data returned by XGetWindowProperty()
Free the data returned by XListProperties()
Free the data returned by Format_Icons()
xprop.c | 21 +++++++++++++++------
1 file changed, 15 insertions(+), 6 deletions(-)
--
2.1.4
More information about the xorg-devel
mailing list