Browse Source

radix tree test suite: Enable address sanitizer

I was looking for a memory scribble and instead found a pile of memory
leaks.  Ensure no more occur in future.

Signed-off-by: Matthew Wilcox <mawilcox@microsoft.com>
Reviewed-by: Rehas Sachdeva <aquannie@gmail.com>
Matthew Wilcox 8 years ago
parent
commit
829f83d365
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tools/testing/radix-tree/Makefile

+ 1 - 1
tools/testing/radix-tree/Makefile

@@ -1,5 +1,5 @@
 
-CFLAGS += -I. -I../../include -g -O2 -Wall -D_LGPL_SOURCE
+CFLAGS += -I. -I../../include -g -O2 -Wall -D_LGPL_SOURCE -fsanitize=address
 LDFLAGS += -lpthread -lurcu
 TARGETS = main idr-test multiorder
 CORE_OFILES := radix-tree.o idr.o linux.o test.o find_bit.o