supp: Ignore leaks caused by shout/sethostent
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Tue, 4 Jun 2019 17:39:00 +0000 (13:39 -0400)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 24 Aug 2019 12:34:59 +0000 (15:34 +0300)
sethostent() seems to be using a global state and we endup with leaks from
that API when called through shout_init(). We had the option to only
ignore the shout case, but the impression is that if we have shout and
another sethostend user, as it's a global state, we may endup with a
different stack trace for the same leak. So in the end, we just ignore
memory allocated by sethostent in general.

tests/check/gst-plugins-good.supp

index c9ea5e4..5132c7d 100644 (file)
   fun:g_tls_certificate_gnutls_real_copy
   fun:g_tls_server_connection_gnutls_retrieve_function
 }
+
+{
+  <shout leaks through sethostent, ignoring all sethostent leaks as this is using global>
+  Memcheck:Leak
+  match-leak-kinds: definite
+  fun:malloc
+  ...
+  fun:sethostent
+}