From 2d6d7171cdf3c50c71e4af271e4ce689ce7482ef Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Thu, 26 Jul 2018 12:10:40 +0100 Subject: Related: rhbz#1602589 silence leaked_storage MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ib489ebf55d3a18d2af6f34b3f6128231d6d7758c Reviewed-on: https://gerrit.libreoffice.org/58090 Tested-by: Jenkins Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- sal/osl/unx/profile.cxx | 1 + soltools/cpp/_unix.c | 1 + soltools/mkdepend/parse.c | 1 + 3 files changed, 3 insertions(+) diff --git a/sal/osl/unx/profile.cxx b/sal/osl/unx/profile.cxx index e1992da2416e..d103c4573d0a 100644 --- a/sal/osl/unx/profile.cxx +++ b/sal/osl/unx/profile.cxx @@ -181,6 +181,7 @@ static oslProfile osl_psz_openProfile(const sal_Char *pszProfileName, oslProfile if (pProfile->m_pFile == nullptr) closeFileImpl(pFile,pProfile->m_Flags); + // coverity[leaked_storage] - pFile is not leaked return pProfile; } diff --git a/soltools/cpp/_unix.c b/soltools/cpp/_unix.c index 7d15d57ed45a..2ee9215524a2 100644 --- a/soltools/cpp/_unix.c +++ b/soltools/cpp/_unix.c @@ -204,6 +204,7 @@ void error(FATAL, "Can't open output file %s", argv[optind + 1]); dup2(fdo, 1); + // coverity[leaked_handle] - on purpose } includelist[NINCLUDE - 1].always = 0; includelist[NINCLUDE - 1].file = dp; diff --git a/soltools/mkdepend/parse.c b/soltools/mkdepend/parse.c index 8aa05547bbe7..23aa67849b49 100644 --- a/soltools/mkdepend/parse.c +++ b/soltools/mkdepend/parse.c @@ -158,6 +158,7 @@ int find_includes(struct filepointer *filep, struct inclist *file, struct inclis break; } } + // coverity[leaked_storage] - on purpose return -1; } -- cgit