aboutsummaryrefslogtreecommitdiff
path: root/ext/misc/csv.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2016-06-02 23:13:21 +0000
committerdrh <drh@noemail.net>2016-06-02 23:13:21 +0000
commit35db31b24b3ec27f741da5c8916c5e9dadee4727 (patch)
treef1e8184cdf30a6397a9303df5d2d97c4d27fccb7 /ext/misc/csv.c
parentadcba64df4f5475e62146f483d53b6d687ef7103 (diff)
downloadsqlite-35db31b24b3ec27f741da5c8916c5e9dadee4727.tar.gz
sqlite-35db31b24b3ec27f741da5c8916c5e9dadee4727.zip
Add the CSV extension to the test fixture. Fix a memory leak in the CSV
extension. Add test cases for the CSV extension, including one that uses a WITHOUT ROWID virtual table participating in the OR optimization. FossilOrigin-Name: 95f483e86e30ae68108904400e18ed41d389446b
Diffstat (limited to 'ext/misc/csv.c')
-rw-r--r--ext/misc/csv.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/misc/csv.c b/ext/misc/csv.c
index 1b1963177..343c866c9 100644
--- a/ext/misc/csv.c
+++ b/ext/misc/csv.c
@@ -302,6 +302,7 @@ static void csv_xfer_error(CsvTable *pTab, CsvReader *pRdr){
static int csvtabDisconnect(sqlite3_vtab *pVtab){
CsvTable *p = (CsvTable*)pVtab;
sqlite3_free(p->zFilename);
+ sqlite3_free(p->zData);
sqlite3_free(p);
return SQLITE_OK;
}