mirror of
https://github.com/CPunch/Cosmo.git
synced 2025-11-05 15:20:07 +00:00
finally fixed this memory bug
we were accidentally tracking frees of stuff that was never allocated lol
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
// realloc wrapper
|
||||
void *cosmoM_reallocate(CState *state, void *buf, size_t oldSize, size_t newSize)
|
||||
{
|
||||
if (buf == NULL) oldSize = 0;
|
||||
#ifdef GC_DEBUG
|
||||
printf("old allocated bytes: %ld\n", state->allocatedBytes);
|
||||
if (buf) {
|
||||
|
||||
Reference in New Issue
Block a user