ref: ee30dd000ce13fe78351022b9b2b701b109e2c72
parent: a04ed98482700550bf6603c58ce23427390262a8
author: Johann <johannkoenig@google.com>
date: Tue Nov 25 07:06:56 EST 2014
Remove unfreed memory in quantize_test.cc vp8_config doesn't need to be on the stack. Just use a local copy. Change-Id: Ia241b1d87fd9422556d957f3ea43ad71eb5c414a
--- a/test/quantize_test.cc
+++ b/test/quantize_test.cc
@@ -55,10 +55,10 @@
rnd_.Reset(ACMRandom::DeterministicSeed());
// The full configuration is necessary to generate the quantization tables.
- VP8_CONFIG *const vp8_config =
- reinterpret_cast<VP8_CONFIG *>(vpx_calloc(sizeof(*vp8_config), 1));
+ VP8_CONFIG vp8_config;
+ vpx_memset(&vp8_config, 0, sizeof(vp8_config));
- vp8_comp_ = vp8_create_compressor(vp8_config);
+ vp8_comp_ = vp8_create_compressor(&vp8_config);
// Set the tables based on a quantizer of 0.
vp8_set_quantizer(vp8_comp_, 0);
--
⑨