Fix a memory leak in the PRAGMA authorization code. (CVS 833)
FossilOrigin-Name: ba58979f2ff3ec878a21e7c171fbcd8fa79ace6f
This commit is contained in:
parent
77ad4e4133
commit
bf0c78af2f
12
manifest
12
manifest
@ -1,5 +1,5 @@
|
||||
C More\stests\sof\sthe\ssqlite_set_authorizer()\sAPI\stogether\swith\sfixes\sfor\sbugs\nthat\sthe\snew\stests\suncovered.\s(CVS\s832)
|
||||
D 2003-01-14T02:49:27
|
||||
C Fix\sa\smemory\sleak\sin\sthe\sPRAGMA\sauthorization\scode.\s(CVS\s833)
|
||||
D 2003-01-14T02:54:08
|
||||
F Makefile.in 6606854b1512f185b8e8c779b8d7fc2750463d64
|
||||
F Makefile.linux-gcc b86a99c493a5bfb402d1d9178dcdc4bd4b32f906
|
||||
F README f1de682fbbd94899d50aca13d387d1b3fd3be2dd
|
||||
@ -21,7 +21,7 @@ F sqlite.1 83f4a9d37bdf2b7ef079a82d54eaf2e3509ee6ea
|
||||
F src/auth.c 9c2db0bc7707f2d2e227f47e3d557b41d44ade75
|
||||
F src/btree.c 131b5903f66e148f0f9af0cedd1c6654932c4e04
|
||||
F src/btree.h 17710339f7a8f46e3c7d6d0d4648ef19c584ffda
|
||||
F src/build.c e107e7b837e24472d36bdf90498ed3dd458c0a8d
|
||||
F src/build.c 3bf5d10439f669f01f45a7c7b604ee0115b23154
|
||||
F src/delete.c cbd499f3f9297504c42e328af89bef1a2113d04c
|
||||
F src/encode.c 09d1fe8a2e97ff94cce496e2909e2ebc8947960b
|
||||
F src/expr.c 19f315a6c274897275d15ad7f238f604d178d706
|
||||
@ -154,7 +154,7 @@ F www/speed.tcl a20a792738475b68756ea7a19321600f23d1d803
|
||||
F www/sqlite.tcl ae3dcfb077e53833b59d4fcc94d8a12c50a44098
|
||||
F www/tclsqlite.tcl 1db15abeb446aad0caf0b95b8b9579720e4ea331
|
||||
F www/vdbe.tcl 2013852c27a02a091d39a766bc87cff329f21218
|
||||
P 7ea46e706485cc159f9d1c7e69efcdd048a0bb12
|
||||
R 8cc1847ed9c1943d64f094cc16cdac01
|
||||
P cc2ae781ac186f9ee1afacdc9117087421955369
|
||||
R db8bf1340de486936570528587d9e25c
|
||||
U drh
|
||||
Z a2b19b177fc9f731ee24f39a7d702049
|
||||
Z 5c7f484e4619e69cb548da93eb06003c
|
||||
|
@ -1 +1 @@
|
||||
cc2ae781ac186f9ee1afacdc9117087421955369
|
||||
ba58979f2ff3ec878a21e7c171fbcd8fa79ace6f
|
@ -25,7 +25,7 @@
|
||||
** ROLLBACK
|
||||
** PRAGMA
|
||||
**
|
||||
** $Id: build.c,v 1.122 2003/01/14 02:49:27 drh Exp $
|
||||
** $Id: build.c,v 1.123 2003/01/14 02:54:08 drh Exp $
|
||||
*/
|
||||
#include "sqliteInt.h"
|
||||
#include <ctype.h>
|
||||
@ -2149,7 +2149,11 @@ void sqlitePragma(Parse *pParse, Token *pLeft, Token *pRight, int minusFlag){
|
||||
zRight = sqliteStrNDup(pRight->z, pRight->n);
|
||||
sqliteDequote(zRight);
|
||||
}
|
||||
if( sqliteAuthCheck(pParse, SQLITE_PRAGMA, zLeft, zRight) ) return;
|
||||
if( sqliteAuthCheck(pParse, SQLITE_PRAGMA, zLeft, zRight) ){
|
||||
sqliteFree(zLeft);
|
||||
sqliteFree(zRight);
|
||||
return;
|
||||
}
|
||||
|
||||
/*
|
||||
** PRAGMA default_cache_size
|
||||
|
Loading…
x
Reference in New Issue
Block a user