s->zalloc = zlib_alloc;
s->zfree = zlib_free;
s->opaque = NULL;
s->zalloc = Z_NULL;
s->zfree = Z_NULL;
s->opaque = NULL;
void zlib_free(void *opaque, void *address)
{
/* memory tracking */
mccp_mem_freed += sizeof(*address);
/* free the cell */
free(address);
}
A memory leak has been crashing my mud for sometime now every couple of hours and I believe I've tracked it down in valgrind but I don't have the knowledge to fix it. Any help in fixing it would be greatly appreciated.
Complete functions bellow.