Trace more things. Add a CORS header for /mem so I can make an app to examine it. Fix a memory leak. Fix tf_realloc(NULL, 0).

git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4187 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
2023-02-18 23:43:00 +00:00
parent 88c7d91858
commit a9551b057b
4 changed files with 33 additions and 5 deletions

View File

@ -218,6 +218,11 @@ static void* _tf_alloc(int64_t* total, size_t size)
static void* _tf_realloc(int64_t* total, void* ptr, size_t size)
{
if (!ptr && !size)
{
return NULL;
}
void* buffer[32];
int count = 0;
size_t overhead = sizeof(size_t);