From: Steinar H. Gunderson Date: Wed, 16 Jan 2013 17:28:40 +0000 (+0100) Subject: Fix a memory leak in expect_equal(). Found by Coverity Scan. X-Git-Tag: 1.0~175 X-Git-Url: https://git.sesse.net/?p=movit;a=commitdiff_plain;h=5fea9e6cd7aba98acc8b026801d268a3111eba63 Fix a memory leak in expect_equal(). Found by Coverity Scan. --- 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; }