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:
4
src/os.c
4
src/os.c
@@ -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();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user