/ Check-in [fbd681dc]
Login

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

Overview
Comment:Fix a memory leak introduced by [55c5d72a].
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: fbd681dce2905d8b8ad7948ba684b0b62d6c04be0f7a2992ee7d6836a99010de
User & Date: dan 2019-01-18 21:17:08
Context
2019-01-19
14:07
Fix a problem with using ALTER TABLE to rename a table or column when the database schema contains a trigger or view that itself contains an expression "<column> AND 0". check-in: 908ff7ff user: dan tags: trunk
2019-01-18
21:17
Fix a memory leak introduced by [55c5d72a]. check-in: fbd681dc user: dan tags: trunk
21:12
Fix a crash in the fts5vocab module caused by including a "term < NULL" term in a WHERE clause. check-in: 9e717c43 user: dan tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to ext/fts3/fts3.c.

  2565   2565       }else{
  2566   2566         fts3PutDeltaVarint3(&p, bDescDoclist, &iPrev, &bFirstOut, i2);
  2567   2567         fts3PoslistCopy(&p, &p2);
  2568   2568         fts3GetDeltaVarint3(&p2, pEnd2, bDescDoclist, &i2);
  2569   2569       }
  2570   2570     }
  2571   2571   
         2572  +  if( rc!=SQLITE_OK ){
         2573  +    sqlite3_free(aOut);
         2574  +    p = aOut = 0;
         2575  +  }
  2572   2576     *paOut = aOut;
  2573   2577     *pnOut = (int)(p-aOut);
  2574   2578     assert( *pnOut<=n1+n2+FTS3_VARINT_MAX-1 );
  2575   2579     return rc;
  2576   2580   }
  2577   2581   
  2578   2582   /*