Fixed potential mem leak, worked on snl.cpp