MCPcopy Create free account
hub / github.com/audacity/audacity / clearTempFile

Function clearTempFile

lib-src/sqlite/shell.c:15782–15788  ·  view source on GitHub ↗

** Try to delete the temporary file (if there is one) and free the ** memory used to hold the name of the temp file. */

Source from the content-addressed store, hash-verified

15780** memory used to hold the name of the temp file.
15781*/
15782static void clearTempFile(ShellState *p){
15783 if( p->zTempFile==0 ) return;
15784 if( p->doXdgOpen ) return;
15785 if( shellDeleteFile(p->zTempFile) ) return;
15786 sqlite3_free(p->zTempFile);
15787 p->zTempFile = 0;
15788}
15789
15790/*
15791** Create a new temp file name with the given suffix.

Callers 4

newTempFileFunction · 0.85
do_meta_commandFunction · 0.85
process_inputFunction · 0.85
wmainFunction · 0.85

Calls 1

shellDeleteFileFunction · 0.85

Tested by

no test coverage detected