scragg0x/Elastica — comment on commit bd56c22afaf6bbd8a96865c66d5ed2095250b826
File:  line 0
By ruflin:

My assumption was, that at the end of the script the curl connection is trashed anyway. But this doesn't seem to be the case -> memory leak issue. So close option seems the right (but dirty) solution. So a user that doesn't want a memory leak, has to close it himself ...

As you probably understand, I'm somehow not happy with both solutions. Isn't there a better one? :-)

But just to make it clear, the whole problem comes from not using curl_close and has nothing to do with the changes on line 124, right? You had to change this, because the connection is not stored anymore?