diff --git a/projects/hip-tests/samples/2_Cookbook/11_texture_driver/texture2dDrv.cpp b/projects/hip-tests/samples/2_Cookbook/11_texture_driver/texture2dDrv.cpp index 3be6d12b31..7c22e19d5d 100755 --- a/projects/hip-tests/samples/2_Cookbook/11_texture_driver/texture2dDrv.cpp +++ b/projects/hip-tests/samples/2_Cookbook/11_texture_driver/texture2dDrv.cpp @@ -124,6 +124,7 @@ bool runTest(int argc, char** argv) { } } } + HIP_CHECK(hipUnbindTexture(tex)); HIP_CHECK(hipFree(dData)); HIP_CHECK(hipFreeArray(array)); return testResult;