Fix memory leaks (#1378)

* Fix memory leaks

Fixed memory leaks in: buffers, basic, and vectors

* Formatting fixes

Co-authored-by: oramirez <oramirez@qti.qualcomm.com>
This commit is contained in:
Sreelakshmi Haridas Maruthur
2022-01-11 09:52:11 -07:00
committed by GitHub
parent 51c6d97d2f
commit 06415f8b79
4 changed files with 46 additions and 32 deletions

View File

@@ -172,6 +172,8 @@ int test_step_internal(cl_device_id deviceID, cl_context context,
destroyClState(pClState);
return -1;
}
clStateDestroyProgramAndKernel(pClState);
}
}