MCPcopy Create free account
hub / github.com/MariaDB/server / PROFILE_ReleaseFile

Function PROFILE_ReleaseFile

storage/connect/inihandl.cpp:418–431  ·  view source on GitHub ↗

* PROFILE_ReleaseFile * * Flush the current profile to disk and remove it from the cache. ***********************************************************************/

Source from the content-addressed store, hash-verified

416 * Flush the current profile to disk and remove it from the cache.
417 ***********************************************************************/
418static void PROFILE_ReleaseFile(void)
419{
420 PROFILE_FlushFile();
421 PROFILE_Free(CurProfile->section);
422//memfree(CurProfile->dos_name);
423//memfree(CurProfile->unix_name);
424 memfree(CurProfile->filename);
425 CurProfile->changed = FALSE;
426 CurProfile->section = NULL;
427//CurProfile->dos_name = NULL;
428//CurProfile->unix_name = NULL;
429 CurProfile->filename = NULL;
430 CurProfile->mtime = 0;
431} // end of PROFILE_ReleaseFile
432
433
434/***********************************************************************

Callers 4

PROFILE_OpenFunction · 0.85
PROFILE_CloseFunction · 0.85

Calls 2

PROFILE_FlushFileFunction · 0.85
PROFILE_FreeFunction · 0.85

Tested by

no test coverage detected