MCPcopy Create free account
hub / github.com/cpputest/cpputest / allocStringBuffer

Method allocStringBuffer

src/CppUTest/SimpleString.cpp:120–123  ·  view source on GitHub ↗

Avoid using the memory leak detector INSIDE SimpleString as its used inside the detector */

Source from the content-addressed store, hash-verified

118
119/* Avoid using the memory leak detector INSIDE SimpleString as its used inside the detector */
120char* SimpleString::allocStringBuffer(size_t _size, const char* file, size_t line)
121{
122 return getStringAllocator()->alloc_memory(_size, file, line);
123}
124
125void SimpleString::deallocStringBuffer(char* str, size_t size, const char* file, size_t line)
126{

Callers

nothing calls this directly

Calls 1

alloc_memoryMethod · 0.45

Tested by

no test coverage detected