/ Check-in [934cda29]
Login

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

Overview
Comment:Further fixes to the P4_MEM size measurement logic.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | experimental
Files: files | file ages | folders
SHA1:934cda2987c331b57a195ed45e9a91794896672a
User & Date: drh 2010-07-26 14:20:07
Context
2010-07-26
14:47
Add virtual table test cases to dbstatus.test. check-in: 72b84d06 user: dan tags: experimental
14:20
Further fixes to the P4_MEM size measurement logic. check-in: 934cda29 user: drh tags: experimental
13:58
Fix an issue with P4_MEM and the schema size measurement logic. Also fix a compiler warning. check-in: 8166f338 user: drh tags: experimental
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/vdbeaux.c.

606
607
608
609
610
611
612


613
614
615
616
617
618
619
620
        freeEphemeralFunction(db, (FuncDef*)p4);
        break;
      }
      case P4_MEM: {
        if( db->pnBytesFreed==0 ){
          sqlite3ValueFree((sqlite3_value*)p4);
        }else{


          sqlite3DbFree(db, ((Mem*)p4)->zMalloc);
        }
        break;
      }
      case P4_VTAB : {
        if( db->pnBytesFreed==0 ) sqlite3VtabUnlock((VTable *)p4);
        break;
      }







>
>
|







606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
        freeEphemeralFunction(db, (FuncDef*)p4);
        break;
      }
      case P4_MEM: {
        if( db->pnBytesFreed==0 ){
          sqlite3ValueFree((sqlite3_value*)p4);
        }else{
          Mem *p = (Mem*)p4;
          sqlite3DbFree(db, p->zMalloc);
          sqlite3DbFree(db, p);
        }
        break;
      }
      case P4_VTAB : {
        if( db->pnBytesFreed==0 ) sqlite3VtabUnlock((VTable *)p4);
        break;
      }