diff options
author | drh <drh@noemail.net> | 2006-07-11 13:15:08 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2006-07-11 13:15:08 +0000 |
commit | 206f3d96d140c9480f19bf92e8f7f35132048d4b (patch) | |
tree | b5e49af529118b78d55a415f27edbee35c6c0cc2 /src/sqliteInt.h | |
parent | 76f8079623ba1e5b21dd4942fc6d53768abd96c1 (diff) | |
download | sqlite-206f3d96d140c9480f19bf92e8f7f35132048d4b.tar.gz sqlite-206f3d96d140c9480f19bf92e8f7f35132048d4b.zip |
Prevent memory leak and possible NULL pointer deference after malloc
failure. Ticket #1886. (CVS 3329)
FossilOrigin-Name: b1f326e6959ef3be11f772e80f5ab6dd65b2d065
Diffstat (limited to 'src/sqliteInt.h')
-rw-r--r-- | src/sqliteInt.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sqliteInt.h b/src/sqliteInt.h index ff5edb0ec..360c69cdc 100644 --- a/src/sqliteInt.h +++ b/src/sqliteInt.h @@ -11,7 +11,7 @@ ************************************************************************* ** Internal interface definitions for SQLite. ** -** @(#) $Id: sqliteInt.h,v 1.519 2006/07/08 18:35:00 drh Exp $ +** @(#) $Id: sqliteInt.h,v 1.520 2006/07/11 13:15:08 drh Exp $ */ #ifndef _SQLITEINT_H_ #define _SQLITEINT_H_ @@ -1568,6 +1568,7 @@ int sqlite3KeywordCode(const unsigned char*, int); int sqlite3RunParser(Parse*, const char*, char **); void sqlite3FinishCoding(Parse*); Expr *sqlite3Expr(int, Expr*, Expr*, const Token*); +Expr *sqlite3ExprOrFree(int, Expr*, Expr*, const Token*); Expr *sqlite3RegisterExpr(Parse*,Token*); Expr *sqlite3ExprAnd(Expr*, Expr*); void sqlite3ExprSpan(Expr*,Token*,Token*); |