Nothing like reading a reference code and seeing a memory leak.
Ok, it is not a memory leak. What the application have is something like
some_struct_t *data = malloc(sizeof(*data));
... which I believe what's happening is that it is getting the size of the struct by dereferencing the variable that will receive the allocation result.
In which case... WHAT THE FUCK, C?
The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!