MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / ClearStringPool

Function ClearStringPool

src/gpre/languages/fbrmclib.cpp:188–197  ·  view source on GitHub ↗

Clear the stringPool, freeing any previously allocated strings

Source from the content-addressed store, hash-verified

186
187// Clear the stringPool, freeing any previously allocated strings
188static void ClearStringPool()
189{
190 for (int i = 0; i < MAX_PARAMS; i++)
191 {
192 if (stringPoolInitialized && stringPool[i])
193 free(stringPool[i]);
194 stringPool[i] = NULL;
195 }
196 stringPoolInitialized = true;
197}
198
199// Clear the intPool, freeing any previously allocated ints
200static void ClearIntPool()

Callers 1

ClearParamPoolFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected