1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-18 10:21:03 +03:00

Fix a bug in out-of-memory processing introduced by check-in (3336). (CVS 3346)

FossilOrigin-Name: 8d98a205cbe9948039884947db33f41a63a09062
This commit is contained in:
drh
2006-08-12 13:28:23 +00:00
parent 67dd9011fc
commit fe5a816bc0
3 changed files with 9 additions and 8 deletions

View File

@@ -13,7 +13,7 @@
** interface, and routines that contribute to loading the database schema
** from disk.
**
** $Id: prepare.c,v 1.37 2006/07/26 13:43:31 drh Exp $
** $Id: prepare.c,v 1.38 2006/08/12 13:28:23 drh Exp $
*/
#include "sqliteInt.h"
#include "os.h"
@@ -52,6 +52,7 @@ int sqlite3InitCallback(void *pInit, int argc, char **argv, char **azColName){
pData->rc = SQLITE_OK;
if( sqlite3MallocFailed() ){
corruptSchema(pData, 0);
return SQLITE_NOMEM;
}