less errors, but memory leak