curl() memory fixed [issue 552]