diff --git a/tests/SimpleLawsTest.cpp b/tests/SimpleLawsTest.cpp
index e7a6ac59901d744dbcf14273b366df9c48f11d3a..1aea69c93f1e9dc117d9f6c66fa092aa25923fc8 100644
--- a/tests/SimpleLawsTest.cpp
+++ b/tests/SimpleLawsTest.cpp
@@ -99,8 +99,8 @@ static void alphaFun() {
 	}
 	cps.wait();
 
-	free(fiberData);
-	free(affinities);
+	delete[] fiberData;
+	delete[] affinities;
 
 	std::cerr << "Result: " << finalResult << std::endl;