From b8f97caf7d58c58dd5bb04728cce11db8dfaf1a2 Mon Sep 17 00:00:00 2001 From: Rhys Kidd Date: Mon, 26 Jan 2015 03:44:07 +0000 Subject: [PATCH] Darwin14.supp should include suppression for known deliberate memory leak in setenv(). Per BZ #343303. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14889 --- NEWS | 1 + darwin14.supp | 12 ++++++++++++ 2 files changed, 13 insertions(+) diff --git a/NEWS b/NEWS index 4cf2556014..6d82de4bce 100644 --- a/NEWS +++ b/NEWS @@ -75,6 +75,7 @@ where XXXXXX is the bug number as listed below. 342221 socket connect false positive uninit memory for unknown af family 342795 Internal glibc __GI_mempcpy call should be intercepted 343012 Unhandled syscall 319 (memfd_create) +343303 Fix known deliberate memory leak in setenv() on Mac OS X 10.10 n-i-bz Provide implementations of certain compiler builtins to support compilers who may not provide those n-i-bz Old STABS code is still being compiled, but never used. Remove it. diff --git a/darwin14.supp b/darwin14.supp index ee65c4bbae..f4a83a99b8 100644 --- a/darwin14.supp +++ b/darwin14.supp @@ -643,3 +643,15 @@ obj:*SystemConfiguration.framework*SystemConfiguration* obj:*SystemConfiguration.framework*SystemConfiguration* } + +# See https://bugs.kde.org/show_bug.cgi?id=188572 about this; it's +# unavoidable due to BSD setenv() semantics. +{ + macos-__setenv-leak-see-our-bug-188572 + Memcheck:Leak + match-leak-kinds: definite + fun:malloc + fun:_owned_ptr_alloc + fun:setenv +} + -- 2.47.3