From 7772b9fafd6b1804a62f8948789394a6653b032a Mon Sep 17 00:00:00 2001 From: Ronnie Sahlberg Date: Sun, 4 Aug 2013 14:07:06 -0700 Subject: [PATCH] TESTS: Fix memory leak in the VERIFY16 Mismatch test --- test-tool/test_verify16_mismatch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test-tool/test_verify16_mismatch.c b/test-tool/test_verify16_mismatch.c index e21e3e0..5d1c45b 100644 --- a/test-tool/test_verify16_mismatch.c +++ b/test-tool/test_verify16_mismatch.c @@ -30,7 +30,7 @@ void test_verify16_mismatch(void) { int i, ret; - unsigned char *buf = malloc(256 * block_size); + unsigned char *buf = alloca(256 * block_size); logging(LOG_VERBOSE, LOG_BLANK_LINE); logging(LOG_VERBOSE, "Test VERIFY16 for blocks 1-255");