diff --git a/regression_test/Makefile b/regression_test/Makefile
index f413c81e3c3d889682e1dc78316a6d6ac91efc3e..274622c4f26272c1021aecec4efa4d8844673443 100644
--- a/regression_test/Makefile
+++ b/regression_test/Makefile
@@ -98,10 +98,12 @@ endif
 
 # Build in parallel
 parallel build-par: compileonly $(DIRS)
+ifeq ($(DEBUG), yes)
 	@echo "--------------------------------------"
 	@echo "List of memory leaks during the build:"
 	@echo "--------------------------------------"
 	@perl vcheck.pl build.txt
+endif
 
 # To generate a report:
 # First, build everything (incl. compileonly); possibly in parallel.