forked from bblanchon/ArduinoJson
Tests: ControllableAllocator controls reallocate() too
This commit is contained in:
1 parent
b3132cac3a
commit
6eb4f45fb9
1 file changed
+1
-1
@@ -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