MCPcopy Create free account
hub / github.com/avast/retdec / Free

Method Free

deps/tinyxml2/include/tinyxml2/tinyxml2.h:400–411  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 2

DeleteNodeMethod · 0.45
DeleteAttributeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected