mirror of
https://github.com/bblanchon/ArduinoJson.git
synced 2025-07-21 22:42:25 +02:00
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