/ Check-in [2c32bd6d]
Login

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

Overview
Comment:Fix memory type mismatch when compiled with MEMDEBUG.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:2c32bd6d4d5da2055633e8fb43ee184f729d8b91
User & Date: mistachkin 2013-11-09 23:44:02
Context
2013-11-09
23:55
Fix compilation errors with some compilers that do not reference recent Windows SDK header files. check-in: a5805976 user: mistachkin tags: trunk
23:44
Fix memory type mismatch when compiled with MEMDEBUG. check-in: 2c32bd6d user: mistachkin tags: trunk
22:08
Add the sqlite3_win32_compact_heap() function for cleaning up memory allocations on Win32 system. Also cleanup the winGetTempname() function. Changes to the Win32 VFS only. check-in: d06d9fdb user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/select.c.

   825    825   /*
   826    826   ** Deallocate a KeyInfo object
   827    827   */
   828    828   void sqlite3KeyInfoUnref(KeyInfo *p){
   829    829     if( p ){
   830    830       assert( p->nRef>0 );
   831    831       p->nRef--;
   832         -    if( p->nRef==0 ) sqlite3_free(p);
          832  +    if( p->nRef==0 ) sqlite3DbFree(0, p);
   833    833     }
   834    834   }
   835    835   
   836    836   /*
   837    837   ** Make a new pointer to a KeyInfo object
   838    838   */
   839    839   KeyInfo *sqlite3KeyInfoRef(KeyInfo *p){