maria-developers team mailing list archive
-
maria-developers team
-
Mailing list archive
-
Message #00115
[patch 06/11] Suppress a false alarm in Valgrind about a leak in inet_ntoa on glibc 2.7.
=== modified file 'mysql-test/valgrind.supp'
---
mysql-test/valgrind.supp | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
Index: mysql-test/valgrind.supp
===================================================================
--- mysql-test/valgrind.supp.orig 2009-04-07 13:42:12.000000000 +0200
+++ mysql-test/valgrind.supp 2009-04-07 13:42:14.000000000 +0200
@@ -601,3 +601,19 @@
fun:dlopen*
}
+#
+# In glibc (checked version 2.7), inet_ntoa allocates an 18-byte
+# per-thread static buffer for the return value. That memory is freed
+# at thread exit, however if called from the main thread, Valgrind
+# does not see the free (test main.no-threads).
+#
+# Since inet_ntoa() does not allocate memory dynamically per-call, this
+# suppression is safe.
+#
+
+{
+ inet_ntoa thread local storage
+ Memcheck:Leak
+ fun:malloc
+ fun:inet_ntoa
+}
--
Follow ups
References