mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-08 14:02:16 +03:00
Fix the .expert command in the shell so that it does not leak memory if not
followed by SQL and so that it works with reverse_unordered_selects. FossilOrigin-Name: 7ead022edaf7a0cd6a8976a1261246084975c9a5be5c893f6c751bb5f963ac0f
This commit is contained in:
@@ -12772,6 +12772,11 @@ int SQLITE_CDECL wmain(int argc, wchar_t **wargv){
|
||||
#ifndef SQLITE_SHELL_FIDDLE
|
||||
/* In WASM mode we have to leave the db state in place so that
|
||||
** client code can "push" SQL into it after this call returns. */
|
||||
#ifndef SQLITE_OMIT_VIRTUALTABLE
|
||||
if( data.expert.pExpert ){
|
||||
expertFinish(&data, 1, 0);
|
||||
}
|
||||
#endif
|
||||
free(azCmd);
|
||||
set_table_name(&data, 0);
|
||||
if( data.db ){
|
||||
|
Reference in New Issue
Block a user