In many languages, when the database handle goes out of scope, it closes the cursor for you and cleans up. No leak.
OTOH when you get used to that and then need to work in an environment that doesn't have it, the adjustment is painful. I am even worse at detail work I have gotten out of the habit of doing... :-/
Cheers,
Ben