/ Check-in [7b3a7551]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Fix heap issue in the shell on Win32 caused by allocator mismatch.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 7b3a75519aa72a6b49a125ee84946ba2c0722dd6644ee0c80ba567eb85daf5c9
User & Date: mistachkin 2018-02-26 16:49:20
Context
2018-02-26
17:03
More tests pursuant to ticket [36fae083b450e3af857a459e20]. check-in: c26f236d user: mistachkin tags: trunk
16:49
Fix heap issue in the shell on Win32 caused by allocator mismatch. check-in: 7b3a7551 user: mistachkin tags: trunk
15:27
Always interpret non-zero floating-point values as true even if their integer part is zero. Fix for ticket [36fae083b450e3af857a459e20]. check-in: a983fa85 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/shell.c.in.

  8486   8486     }
  8487   8487     sqlite3_free(data.zFreeOnClose);
  8488   8488     find_home_dir(1);
  8489   8489     output_reset(&data);
  8490   8490     data.doXdgOpen = 0;
  8491   8491     clearTempFile(&data);
  8492   8492   #if !SQLITE_SHELL_IS_UTF8
  8493         -  for(i=0; i<argc; i++) sqlite3_free(argv[i]);
  8494         -  sqlite3_free(argv);
         8493  +  for(i=0; i<argc; i++) free(argv[i]);
         8494  +  free(argv);
  8495   8495   #endif
  8496   8496     return rc;
  8497   8497   }