Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 461030 - x11-terms/gnome-terminal-3.6.1 - memory leak
Summary: x11-terms/gnome-terminal-3.6.1 - memory leak
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2013-03-09 22:00 UTC by Konstantin (elxa)
Modified: 2013-07-27 11:53 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
gnome-terminal-3.6.1 memory leak patch (51_fix_memleak_in_name_lost_cb.patch,488 bytes, patch)
2013-03-09 22:01 UTC, Konstantin (elxa)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Konstantin (elxa) 2013-03-09 22:00:12 UTC
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
Comment 1 Konstantin (elxa) 2013-03-09 22:01:20 UTC
Created attachment 341476 [details, diff]
gnome-terminal-3.6.1 memory leak patch
Comment 2 Pacho Ramos gentoo-dev 2013-07-27 11:53:35 UTC
this is fixed in 3.8