mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 11:30:18 +00:00
fix a bug
This commit is contained in:
parent
08601671dc
commit
efc7da7dc7
@ -132,7 +132,7 @@ struct SmallArrayPool {
|
|||||||
|
|
||||||
void dealloc(T* p, int n){
|
void dealloc(T* p, int n){
|
||||||
if(n == 0) return;
|
if(n == 0) return;
|
||||||
if(n > __Bucket){
|
if(n > __Bucket || buckets[n].size() >= __BucketSize){
|
||||||
delete[] p;
|
delete[] p;
|
||||||
}else{
|
}else{
|
||||||
buckets[n].push_back(p);
|
buckets[n].push_back(p);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user