GNOME Bugzilla – Bug 307884
[patch] memleak in screen.c
Last modified: 2005-07-12 19:09:32 UTC
From http://www.gnome.org/~kmaraas/valgrind-logs-2005-06-09/metacity : ==14768== 20 bytes in 1 blocks are definitely lost in loss record 1325 of 2712 ==14768== at 0x1B909222: malloc (vg_replace_malloc.c:130) ==14768== by 0x1BE76F55: g_malloc (gmem.c:137) ==14768== by 0x806C672: reload_xinerama_infos (screen.c:343) ==14768== by 0x806DDB4: meta_screen_new (screen.c:581) ==14768== by 0x805B9B4: meta_display_open (display.c:664) ==14768== by 0x80667E4: main (main.c:470)
Created attachment 47850 [details] [review] proposed patch Releases ->xinerama_infos
Hmm...I had noticed the leak at some point before and even wrote it down, but apparently forgot about it. Thanks for catching it and writing the patch. I think this qualifies as an obvious patch that I'm allowed to accept (Havoc, kick me if I'm wrong), so go ahead and commit to the gnome-2-10 branch and HEAD (let me know if you don't have CVS access and I'll commit it for you).
* src/screen.c (meta_screen_free): free ->xinerama_infos Closes bug#307884