Re: [PATCH v3] http: use xmalloc with cURL

2019-08-15 Thread Junio C Hamano
Carlo Marcelo Arenas Belón writes: > #if LIBCURL_VERSION_NUM < 0x070800 > #define curl_global_init(a) do { /* nothing */ } while (0) > +#elif LIBCURL_VERSION_NUM >= 0x070c00 > +#define curl_global_init(a) curl_global_init_mem(a, xmalloc, free, \ > +

[PATCH v3] http: use xmalloc with cURL

2019-08-15 Thread Carlo Marcelo Arenas Belón
f0ed8226c9 (Add custom memory allocator to MinGW and MacOS builds, 2009-05-31) never told cURL about it. Correct that by using the cURL initializer available since version 7.12 to point to xmalloc and friends for consistency which then will pass the allocation requests along when USE_NED_ALLOCATOR