This SQL causes a memory leak in the csv.c virtual table module:

  CREATE VIRTUAL TABLE if not exists t1
    USING csv(filename='FileDoesNotExists.csv');

Cause is that the zIn buffer which is allocated here:

  http://localhost:8081/artifact?name=1a009b93650732e2&ln=128

is only freed in csv_reader_reset() if the file was opened successfully and the file handle is assigned:

  http://localhost:8081/artifact?name=1a009b93650732e2&ln=102-106

Hence no file open, no file handle, no buffer freed, memory leak.

Ralf
_______________________________________________
sqlite-users mailing list
sqlite-users@mailinglists.sqlite.org
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to