is it possible is being set to NULL before headers.t being freed in some case ? I noticed there are checks inside set_query_params() for other already allocated memory buffers . It's crashing randomly at startup, in this scenario, I dont have backtraces anymore.