"realloc() possible leak: when realloc() fails in allocating memory, original pointer 'dsd->entries' is lost. Consider assigning realloc() to a temporary pointer. mongoose.cpp" -PVS Studio
Do note that there is a TODO within the code (TODO(lsm): propagate an error to the caller).
I'd love to solve that too if someone could point me in the right direction (what mechanism is generally used? is there another function which i can use as an example?)