1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-05 15:55:57 +03:00

Always call sqlite3_malloc() in sqlite3OsInit(), even when not compiled

with SQLITE_TEST.

FossilOrigin-Name: b98a8706a61ad27c881b6820eee10d06bfb27417
This commit is contained in:
drh
2009-08-17 16:01:11 +00:00
parent 3d6e060b48
commit adad77a6c6
3 changed files with 21 additions and 9 deletions

View File

@@ -197,7 +197,9 @@ int sqlite3OsCloseFree(sqlite3_file *pFile){
** error in sqlite3_os_init() by the upper layers can be tested.
*/
int sqlite3OsInit(void){
DO_OS_MALLOC_TEST(0);
void *p = sqlite3_malloc(10);
if( p==0 ) return SQLITE_NOMEM;
sqlite3_free(p);
return sqlite3_os_init();
}