Re: eDBI is born, feedback wanted
- Posted by raseu Oct 14, 2009
- 1929 views
great work,
poss mem leak in edbi_sqlite3.c ?
object __cdecl edbi_execute(object dbh, object sql) { sqlite3 *db = (sqlite3 *) dbh; char *c_sql; int result; c_sql = EMalloc(SEQ_PTR(sql)->length + 1); MakeCString(c_sql, sql, SEQ_PTR(sql)->length + 1); result = sqlite3_exec(db, c_sql, 0, 0, 0); // MISSING EFree(c_sql); return result; }