x11-terms/gnome-terminal seems to leak memory (2699M for res in htop today. I do not reboot or close the terminal very often) I don't know if this patch fixes my leak problems but it is available at https://launchpadlibrarian.net/125319819/51_fix_memleak_in_name_lost_cb.patch (referenced in https://bugs.launchpad.net/ubuntu/+source/gnome-terminal/+bug/1088352) and makes sense to me, so shouldn't we include it? docs for g_listenv() https://developer.gnome.org/glib/2.32/glib-Miscellaneous-Utility-Functions.html#g-listenv says "Returns : a NULL-terminated list of strings which must be freed with g_strfreev(). [array zero-terminated=1][transfer full]" Reproducible: Always Steps to Reproduce: start gnome-terminal Actual Results: watch memory usage rising Expected Results: no memory leaks
Created attachment 341476 [details, diff] gnome-terminal-3.6.1 memory leak patch
this is fixed in 3.8