qc_sqlite: Remove leak
Previously a query like e.g. delete t11.*, t12.* from t11,t12 where t11.a = t12.a; would cause a leak. The code for freeing that memory was present but commented out because it used to cause a crash. Now no crash appears, so it would seem that the crash was caused by something else that no longer is present.
This commit is contained in:
@ -1185,10 +1185,8 @@ void mxs_sqlite3DeleteFrom(Parse* pParse, SrcList* pTabList, Expr* pWhere, SrcLi
|
||||
update_affected_fields(info, 0, pWhere, QC_TOKEN_MIDDLE, 0);
|
||||
}
|
||||
|
||||
//TODO: Figure out why the following statements, causes a crash
|
||||
//TODO: long down the road.
|
||||
//TODO: exposed_sqlite3SrcListDelete(pParse->db, pTabList);
|
||||
//TODO: exposed_sqlite3ExprDelete(pParse->db, pWhere);
|
||||
exposed_sqlite3ExprDelete(pParse->db, pWhere);
|
||||
exposed_sqlite3SrcListDelete(pParse->db, pTabList);
|
||||
exposed_sqlite3SrcListDelete(pParse->db, pUsing);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user