MCPcopy Create free account
hub / github.com/Overload-Technologies/Overload / Free

Method Free

Dependencies/tinyxml2/include/tinyxml2.h:403–414  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

401 }
402
403 virtual void Free( void* mem ) {
404 if ( !mem ) {
405 return;
406 }
407 --_currentAllocs;
408 Item* item = static_cast<Item*>( mem );
409#ifdef TINYXML2_DEBUG
410 memset( item, 0xfe, sizeof( *item ) );
411#endif
412 item->next = _root;
413 _root = item;
414 }
415 void Trace( const char* name ) {
416 printf( "Mempool %s watermark=%d [%dk] current=%d size=%d nAlloc=%d blocks=%d\n",
417 name, _maxAllocs, _maxAllocs * ITEM_SIZE / 1024, _currentAllocs,

Callers 7

DeleteNodeMethod · 0.45
DeleteAttributeMethod · 0.45
ReadMethod · 0.45
WriteMethod · 0.45
CleanUpMethod · 0.45
UpdateMethod · 0.45
UpdateMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected