Correct memory leaks

Remove memory leaks from the JSONFeature loader and the las reader.