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();