babelouest / ulfius

Web Framework to build REST APIs, Webservices or any HTTP endpoint in C language. Can stream large amount of data, integrate JSON data with Jansson, and create websocket services
https://babelouest.github.io/ulfius
GNU Lesser General Public License v2.1
1.07k stars 183 forks source link

u_request: Don't use malloc, but always o_malloc #207

Closed laf0rge closed 2 years ago

laf0rge commented 2 years ago

Allocating memory using malloc, but then free'ing it using o_free will not work for anyone using a custom memory allocator. The allocations and free's must either both go to libc, or both via the custom allocator; one cannot allocate one way and release another.

Closes: #206