From 7278eff60aaaf130563135108d8b605cd56e228e Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Tue, 21 Oct 2014 19:38:40 +1100 Subject: [PATCH] build: explicitly enable leak checking --- configure.ac | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configure.ac b/configure.ac index 676768dc..ead2062f 100644 --- a/configure.ac +++ b/configure.ac @@ -161,8 +161,10 @@ AS_IF([test "x$enable_debugging" = "xyes"], [ AS_IF([test "x$enable_sanitizer" = "xyes"], [ AX_APPEND_COMPILE_FLAGS([-fsanitize=address], [], [-Werror]) AX_APPEND_COMPILE_FLAGS([-fsanitize=undefined], [], [-Werror]) + AX_APPEND_COMPILE_FLAGS([-fsanitize=leak], [], [-Werror]) AX_APPEND_LINK_FLAGS([-fsanitize=address], [], [-Werror]) AX_APPEND_LINK_FLAGS([-fsanitize=undefined], [], [-Werror]) + AX_APPEND_LINK_FLAGS([-fsanitize=leak], [], [-Werror]) ]) AX_APPEND_COMPILE_FLAGS([-ggdb], [], [-Werror])