aboutsummaryrefslogtreecommitdiff
path: root/src/expr.c
diff options
context:
space:
mode:
authordanielk1977 <danielk1977@noemail.net>2007-08-29 14:06:22 +0000
committerdanielk1977 <danielk1977@noemail.net>2007-08-29 14:06:22 +0000
commit26783a58e2206564f4db8a8bade9337a36a7b440 (patch)
tree03b0ed2f647f669f0d56aa1584b49a538c5a3334 /src/expr.c
parentf53e9b5ad5ea62453fdc87e04e37d7ab309bc4f6 (diff)
downloadsqlite-26783a58e2206564f4db8a8bade9337a36a7b440.tar.gz
sqlite-26783a58e2206564f4db8a8bade9337a36a7b440.zip
Use the DbMalloc() and DbRealloc() functions more consistently. (CVS 4323)
FossilOrigin-Name: c790c234c369c6b7610e67dcaaa9eee347df729c
Diffstat (limited to 'src/expr.c')
-rw-r--r--src/expr.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/expr.c b/src/expr.c
index 778c65f3b..7465ab90b 100644
--- a/src/expr.c
+++ b/src/expr.c
@@ -12,7 +12,7 @@
** This file contains routines used for analyzing expressions and
** for generating VDBE code that evaluates expressions in SQLite.
**
-** $Id: expr.c,v 1.309 2007/08/29 12:31:26 danielk1977 Exp $
+** $Id: expr.c,v 1.310 2007/08/29 14:06:23 danielk1977 Exp $
*/
#include "sqliteInt.h"
#include <ctype.h>
@@ -665,7 +665,7 @@ ExprList *sqlite3ExprListAppend(
if( pList->nAlloc<=pList->nExpr ){
struct ExprList_item *a;
int n = pList->nAlloc*2 + 4;
- a = sqlite3_realloc(pList->a, n*sizeof(pList->a[0]));
+ a = sqlite3DbRealloc(db, pList->a, n*sizeof(pList->a[0]));
if( a==0 ){
goto no_mem;
}
@@ -683,7 +683,6 @@ ExprList *sqlite3ExprListAppend(
no_mem:
/* Avoid leaking memory if malloc has failed. */
- db->mallocFailed = 1;
sqlite3ExprDelete(pExpr);
sqlite3ExprListDelete(pList);
return 0;