Fix memory leak 18/206618/1
authorhyunho <hhstark.kang@samsung.com>
Wed, 22 May 2019 06:45:02 +0000 (15:45 +0900)
committerhyunho <hhstark.kang@samsung.com>
Wed, 22 May 2019 06:45:22 +0000 (15:45 +0900)
Change-Id: I8445775aaae8339cf9ff95b196de87cfccd79e1e
Signed-off-by: hyunho <hhstark.kang@samsung.com>
watchface-complication/editables-manager.cc

index b18dae7..d6494cd 100644 (file)
@@ -221,6 +221,7 @@ std::unique_ptr<Bundle> EditablesManager::LoadContext(int editable_id,
         new (std::nothrow) Bundle(std::string(raw_data)));
     if (context_data.get() == nullptr) {
       LOGE("Out of memory");
+      sqlite3_finalize(stmt);
       return nullptr;
     }
   }