Fix valgrind warnings.
Fix valgrind warnings.

Change-Id: I457ad875af65a62cd7d836de4b07b4f272982338

KhronosGroup/Vulkan-CTS,googlestadia/VK-GL-CTS,geekboxzone/mmallow_external_deqp,chadversary/deqp,chadversary/deqp,chadversary/deqp,chadversary/deqp,googlestadia/VK-GL-CTS,chadversary/deqp,geekboxzone/mmallow_external_deqp,geekboxzone/mmallow_external_deqp,KhronosGroup/VK-GL-CTS,googlestadia/VK-GL-CTS,chadversary/deqp,KhronosGroup/VK-GL-CTS,KhronosGroup/VK-GL-CTS,geekboxzone/mmallow_external_deqp,KhronosGroup/Vulkan-CTS,KhronosGroup/Vulkan-CTS,KhronosGroup/VK-GL-CTS,geekboxzone/mmallow_external_deqp,KhronosGroup/Vulkan-CTS,googlestadia/VK-GL-CTS,geekboxzone/mmallow_external_deqp,googlestadia/VK-GL-CTS,googlestadia/VK-GL-CTS,KhronosGroup/Vulkan-CTS,KhronosGroup/VK-GL-CTS,KhronosGroup/Vulkan-CTS,KhronosGroup/VK-GL-CTS