mirror of
https://github.com/sqlite/sqlite.git
synced 2025-07-29 08:01:23 +03:00
Fix a couple of problems in handling OOM conditions within LSM.
FossilOrigin-Name: 989a5c1745a7145c14c6d9b713176ecba6b99296de8bdd09f666eeef10da9c2e
This commit is contained in:
@ -39,11 +39,9 @@ int lsmStringExtend(LsmString *pStr, int nNew){
|
||||
lsmFree(pStr->pEnv, pStr->z);
|
||||
nAlloc = 0;
|
||||
pStr->n = -1;
|
||||
pStr->z = 0;
|
||||
}else{
|
||||
pStr->nAlloc = nAlloc;
|
||||
pStr->z = zNew;
|
||||
}
|
||||
pStr->nAlloc = nAlloc;
|
||||
pStr->z = zNew;
|
||||
}
|
||||
return (pStr->z ? LSM_OK : LSM_NOMEM_BKPT);
|
||||
}
|
||||
|
Reference in New Issue
Block a user