Not a huge memory leak, but this should probably be in a finally block