forked from bblanchon/ArduinoJson
Tests: ControllableAllocator controls reallocate()
too
This commit is contained in:
@ -171,7 +171,7 @@ class ControllableAllocator : public ArduinoJson::Allocator {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void* reallocate(void* ptr, size_t n) override {
|
void* reallocate(void* ptr, size_t n) override {
|
||||||
return _upstream->reallocate(ptr, n);
|
return _enabled ? _upstream->reallocate(ptr, n) : 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void disable() {
|
void disable() {
|
||||||
|
Reference in New Issue
Block a user