added a warning about memory leaks