Fix a memory leak in expect_equal(). Found by Coverity Scan.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Wed, 16 Jan 2013 17:28:40 +0000 (18:28 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Wed, 16 Jan 2013 17:28:40 +0000 (18:28 +0100)
test_util.cpp

index 111f8b2..b466de2 100644 (file)
@@ -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;
 }