From 0868c579807a097d4ef5c02a0eff710610371ffc Mon Sep 17 00:00:00 2001 From: Joonhaeng Heo Date: Tue, 11 Jun 2024 14:15:20 +0900 Subject: [PATCH] Fix Chip-tool heap memory increase in interactive mode --- src/controller/ExamplePersistentStorage.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/controller/ExamplePersistentStorage.cpp b/src/controller/ExamplePersistentStorage.cpp index 054469900b39a9..27ea886a77dd7f 100644 --- a/src/controller/ExamplePersistentStorage.cpp +++ b/src/controller/ExamplePersistentStorage.cpp @@ -85,6 +85,7 @@ CHIP_ERROR PersistentStorage::Init(const char * name, const char * directory) mName = name; mDirectory = directory; + mConfig.clear(); mConfig.parse(ifs); ifs.close();