summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/misc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2010-09-02 13:51:59 +0200
committerAdam Borowski <kilobyte@angband.pl>2010-09-02 13:52:44 +0200
commitd38f0bddf94483c804715a397a3a26bee55df5b8 (patch)
treeac369326f33920dedfbd8c9abb3d67a3fb073da7 /crawl-ref/source/misc
parent4e15903fb0044d4f08e38508600e4d5d969c5902 (diff)
downloadcrawl-ref-d38f0bddf94483c804715a397a3a26bee55df5b8.tar.gz
crawl-ref-d38f0bddf94483c804715a397a3a26bee55df5b8.zip
Suppress an O(1) memory leak in glibc.
Diffstat (limited to 'crawl-ref/source/misc')
-rw-r--r--crawl-ref/source/misc/valgrind-suppress.txt16
1 files changed, 16 insertions, 0 deletions
diff --git a/crawl-ref/source/misc/valgrind-suppress.txt b/crawl-ref/source/misc/valgrind-suppress.txt
index f6571b58e3..7c86c38065 100644
--- a/crawl-ref/source/misc/valgrind-suppress.txt
+++ b/crawl-ref/source/misc/valgrind-suppress.txt
@@ -46,3 +46,19 @@
fun:newterm
fun:initscr
}
+
+# glibc has an O(1) memory leak in getpwuid() that's harmless since the
+# memory is reused in subsequent calls. Such kind of memory is supposed
+# to be freed when ran under memory debuggers, but it currently isn't.
+# Bug entry: http://sourceware.org/bugzilla/show_bug.cgi?id=2314
+{
+ libc_pwuid_once_leak
+ Memcheck:Leak
+ fun:malloc
+ fun:nss_parse_service_list
+ fun:__nss_database_lookup
+ obj:*
+ obj:*
+ fun:getpwuid_r@@GLIBC_2.2.5
+ fun:getpwuid
+}