tests/bench-slope: fix memory-leak and use-after-free bugs
authorJussi Kivilinna <jussi.kivilinna@iki.fi>
Sat, 21 Mar 2015 11:01:38 +0000 (13:01 +0200)
committerJussi Kivilinna <jussi.kivilinna@iki.fi>
Sat, 21 Mar 2015 11:01:38 +0000 (13:01 +0200)
commitaa234561d00c3fb15fe501df4bf58f3db7c7c06b
treef464361bff7182eea5c453731de76187cc691c1d
parentf5832285b0e420d77be1b8da10a1e1d86583b414
tests/bench-slope: fix memory-leak and use-after-free bugs

* tests/bench-slope.c (do_slope_benchmark): Free 'measurements' at end.
(bench_mac_init): Move 'key' free at end of function.
--

Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>
tests/bench-slope.c