libcurl: some OOM handling fixes
13 files changed