More leak fixes. 24 bytes remain that I don't know how to fix.
curl apparently has the same, so...