fix memory leak
Merge github.com:NextfazeSD/NFAllocInit