Replace a manual buffer allocation with std::vector

To reduce possible memory leaks.

Bug: 128324105
Test: make
Change-Id: I5e1a3d2a0e0b0063878143f4362fd7ff217e337a
Signed-off-by: Roman Kiryanov <rkir@google.com>
1 file changed