- Fix prototype and memory leak