tests: Fix OT error in commandpool test
Change-Id: I2b505bed3a9ebb3d20c2df6189be00696a480f54
diff --git a/tests/layer_validation_tests.cpp b/tests/layer_validation_tests.cpp
index 7f00ac6..393a546 100644
--- a/tests/layer_validation_tests.cpp
+++ b/tests/layer_validation_tests.cpp
@@ -3971,6 +3971,7 @@
vkCmdBeginRenderPass(command_buffer, &rpbi, VK_SUBPASS_CONTENTS_INLINE);
vkCmdEndRenderPass(command_buffer);
vkEndCommandBuffer(command_buffer);
+ vkDestroyImageView(m_device->device(), view, nullptr);
// Destroy command pool to implicitly free command buffer
vkDestroyCommandPool(m_device->device(), command_pool, NULL);
vkDestroyFramebuffer(m_device->device(), fb, nullptr);