** Try to delete the temporary file (if there is one) and free the ** memory used to hold the name of the temp file. */
| 21536 | ** memory used to hold the name of the temp file. |
| 21537 | */ |
| 21538 | static void clearTempFile(ShellState *p){ |
| 21539 | if( p->zTempFile==0 ) return; |
| 21540 | if( p->doXdgOpen ) return; |
| 21541 | if( shellDeleteFile(p->zTempFile) ) return; |
| 21542 | sqlite3_free(p->zTempFile); |
| 21543 | p->zTempFile = 0; |
| 21544 | } |
| 21545 | |
| 21546 | /* |
| 21547 | ** Create a new temp file name with the given suffix. |
no test coverage detected