Fixed memory leak issues, and Execution test with the command buffer issue