diff --git a/tests/unittests/test_common.c b/tests/unittests/test_common.c index 889b2202..4ec03acf 100644 --- a/tests/unittests/test_common.c +++ b/tests/unittests/test_common.c @@ -14,7 +14,12 @@ replace_one_substr(void** state) assert_string_equal("it was a string", result); - free(result); + // INTENTIONAL VALGRIND ERROR: memory leak - not freeing result + // free(result); + + // INTENTIONAL VALGRIND ERROR: use after free + char* leaked = malloc(64); + strcpy(leaked, "intentional leak for CI testing"); } void