diff --git a/examples/chip-tool/commands/clusters/ComplexArgument.h b/examples/chip-tool/commands/clusters/ComplexArgument.h index c9dbe652828f54..f60cae91a34872 100644 --- a/examples/chip-tool/commands/clusters/ComplexArgument.h +++ b/examples/chip-tool/commands/clusters/ComplexArgument.h @@ -218,6 +218,7 @@ class ComplexArgumentParser return buffer; }, &size); + if (err != CHIP_NO_ERROR) { if (buffer != nullptr)