Fixed shot memory leak