tri: cleanup valgrind errors
tri: cleanup valgrind errors

Integrate changes from merge request #5.

KhronosGroup/Vulkan-Tools,KhronosGroup/Vulkan-Tools,KhronosGroup/Vulkan-Tools,KhronosGroup/Vulkan-Tools