mirror of
https://github.com/sqlite/sqlite.git
synced 2025-11-12 13:01:09 +03:00
Change sqlite3SelectDup() to always return NULL if an OOM has occurred.
FossilOrigin-Name: 01ba4641ab436c6065c8725908fc0913f2abded4ea62e004b7534e0116b9451a
This commit is contained in:
@@ -1530,6 +1530,10 @@ Select *sqlite3SelectDup(sqlite3 *db, Select *pDup, int flags){
|
||||
pNext = pNew;
|
||||
}
|
||||
|
||||
if( db->mallocFailed ){
|
||||
sqlite3SelectDelete(db, pRet);
|
||||
pRet = 0;
|
||||
}
|
||||
return pRet;
|
||||
}
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user