]> granicus.if.org Git - sudo/commitdiff
Define NO_LEAKS when sudo is built with Coverity.
authorTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 4 May 2016 19:01:57 +0000 (13:01 -0600)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 4 May 2016 19:01:57 +0000 (13:01 -0600)
config.h.in
configure.ac

index b3311e922aea9db3ba2f15e41a7b966072b7c7c2..f9d63a5d528e05721c363559bdb30e8158a7a121 100644 (file)
 # undef __STDC_WANT_LIB_EXT1__
 #endif
 
+/* Prevent static analyzers from genering bogus memory leak warnings. */
+#if defined(__COVERITY__) && !defined(NO_LEAKS)
+# define NO_LEAKS
+#endif
+
 #endif /* SUDO_CONFIG_H */
index 3117cf993b14b97fe4e6a98c3e0db9d7dd7b57d3..187cff598868215c96c3481d3ffaa4622f528966 100644 (file)
@@ -4417,4 +4417,9 @@ AH_BOTTOM([/* BSD compatibility on some SVR4 systems. */
 # undef __STDC_WANT_LIB_EXT1__
 #endif
 
+/* Prevent static analyzers from genering bogus memory leak warnings. */
+#if defined(__COVERITY__) && !defined(NO_LEAKS)
+# define NO_LEAKS
+#endif
+
 #endif /* SUDO_CONFIG_H */])