| 406 | } |
| 407 | |
| 408 | __forceinline bool freeString ( char * ptr, uint64_t length, const LineInfo * at, bool tempString = false ) { |
| 409 | uint64_t size = length + 1; |
| 410 | size = (size + 15) & ~15; |
| 411 | if (stringHeap->isOwnPtr(ptr, size)) { |
| 412 | if ( instrumentAllocations ) onFreeString(ptr, tempString, at ? *at : LineInfo()); |
| 413 | stringHeap->impl_freeString(ptr, length); |
| 414 | return true; |
| 415 | } |
| 416 | return false; |
| 417 | } |
| 418 | |
| 419 | __forceinline void freeTempString ( char * ptr, const LineInfo * at ) { |
| 420 | if ( stringHeap->isIntern() ) return; |
no test coverage detected