immediate_interpreter_unittest: fix memory leaks

A few pointers held in local variables weren't getting deallocated after
use. The objects don't need to be on the heap anyway, so put them on the
stack instead.

BUG=b:318520168
TEST=add -fsanitize=address to compiler flags, run unit tests [0], and
     check no address sanitization failures are reported

[0]: cros_sdk env FEATURES="test" emerge-${BOARD} chromeos-base/gestures

Change-Id: I5ec6ef00e2fcc8d050adc9885719d0d1af305c1e
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/gestures/+/5318357
Tested-by: Harry Cutts <hcutts@chromium.org>
Code-Coverage: Sean O'Brien <seobrien@chromium.org>
Reviewed-by: Sean O'Brien <seobrien@chromium.org>
Commit-Queue: Harry Cutts <hcutts@chromium.org>
1 file changed