From 5fea9e6cd7aba98acc8b026801d268a3111eba63 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Wed, 16 Jan 2013 18:28:40 +0100 Subject: [PATCH] Fix a memory leak in expect_equal(). Found by Coverity Scan. --- test_util.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test_util.cpp b/test_util.cpp index 111f8b2..b466de2 100644 --- a/test_util.cpp +++ b/test_util.cpp @@ -196,4 +196,7 @@ void expect_equal(const unsigned char *ref, const unsigned char *result, unsigne } expect_equal(ref_float, result_float, width, height, largest_difference_limit, rms_limit); + + delete[] ref_float; + delete[] result_float; } -- 2.39.2