aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2009-06-12 03:47:36 +0000
committerdrh <drh@noemail.net>2009-06-12 03:47:36 +0000
commit13d32d196e23cbdb41f79de73834eeac1c46a397 (patch)
tree63c0617452a098d2988cf47bd638a5ef5aff14f8 /src
parentc3a8402a949a0a78582e6965fafffbb310c37d76 (diff)
downloadsqlite-13d32d196e23cbdb41f79de73834eeac1c46a397.tar.gz
sqlite-13d32d196e23cbdb41f79de73834eeac1c46a397.zip
An additional memory leak in the parser fixed. Ticket #3911. (CVS 6751)
FossilOrigin-Name: 6197b492714e16396941ae6ba61f90f708d54728
Diffstat (limited to 'src')
-rw-r--r--src/parse.y6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/parse.y b/src/parse.y
index 9401e13cd..f415d5fff 100644
--- a/src/parse.y
+++ b/src/parse.y
@@ -14,7 +14,7 @@
** the parser. Lemon will also generate a header file containing
** numeric codes for all of the tokens.
**
-** @(#) $Id: parse.y,v 1.279 2009/06/12 02:27:15 drh Exp $
+** @(#) $Id: parse.y,v 1.280 2009/06/12 03:47:37 drh Exp $
*/
// All token codes are small integers with #defines that begin with "TK_"
@@ -499,7 +499,9 @@ seltablist(A) ::= stl_prefix(X) nm(Y) dbnm(D) as(Z) indexed_opt(I) on_opt(N) usi
}
seltablist(A) ::= stl_prefix(X) LP seltablist(F) RP
as(Z) on_opt(N) using_opt(U). {
- if( X==0 && Z.n==0 && N==0 && U==0 ){
+ if( X==0 ){
+ sqlite3ExprDelete(pParse->db, N);
+ sqlite3IdListDelete(pParse->db, U);
A = F;
}else{
Select *pSubquery;