Fossil

Check-in [9002a80a]
Login

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

Overview
Comment:Fix a memory leak in the delta_parse() table-valued function, pointed out by Ralf Junkers.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 9002a80ad62c5d296eebd03fda1b3b8a69623ca86a81387c19b9fb59e5705099
User & Date: drh 2019-05-27 11:17:43
Context
2019-05-28
18:43
Pedantic cleanup to how to the SQL compress()/decompress() UDFs report an OOM, which can happen via zlib, outside of fossil's fail-fast allocator. check-in: 20abe259 user: stephan tags: trunk
2019-05-27
11:17
Fix a memory leak in the delta_parse() table-valued function, pointed out by Ralf Junkers. check-in: 9002a80a user: drh tags: trunk
2019-05-23
17:07
Update the built-in SQLite to the latest 3.29.0 alpha. check-in: 4f040a18 user: drh tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/deltafunc.c.

279
280
281
282
283
284
285

286
287
288
289
290
291
292
}

/*
** Destructor for a deltaparsevtab_cursor.
*/
static int deltaparsevtabClose(sqlite3_vtab_cursor *cur){
  deltaparsevtab_cursor *pCur = (deltaparsevtab_cursor*)cur;

  sqlite3_free(pCur);
  return SQLITE_OK;
}


/*
** Advance a deltaparsevtab_cursor to its next row of output.







>







279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
}

/*
** Destructor for a deltaparsevtab_cursor.
*/
static int deltaparsevtabClose(sqlite3_vtab_cursor *cur){
  deltaparsevtab_cursor *pCur = (deltaparsevtab_cursor*)cur;
  sqlite3_free(pCur->aDelta);
  sqlite3_free(pCur);
  return SQLITE_OK;
}


/*
** Advance a deltaparsevtab_cursor to its next row of output.