** Try to delete the temporary file (if there is one) and free the ** memory used to hold the name of the temp file. */
| 26663 | ** memory used to hold the name of the temp file. |
| 26664 | */ |
| 26665 | static void clearTempFile(ShellState *p){ |
| 26666 | if( p->zTempFile==0 ) return; |
| 26667 | if( p->doXdgOpen ) return; |
| 26668 | if( shellDeleteFile(p->zTempFile) ) return; |
| 26669 | sqlite3_free(p->zTempFile); |
| 26670 | p->zTempFile = 0; |
| 26671 | } |
| 26672 | |
| 26673 | /* |
| 26674 | ** Create a new temp file name with the given suffix. |
no test coverage detected