Fix memory leak 77/306377/1
authorHwankyu Jhun <h.jhun@samsung.com>
Wed, 21 Feb 2024 02:06:32 +0000 (11:06 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Wed, 21 Feb 2024 02:06:32 +0000 (11:06 +0900)
The svc_info handle must be released using aul_svc_info_destroy().

Change-Id: I66da7c2f777ebfcc574e59cb54557f79bdb3311d
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
tizen-cpp/app-core-cpp/app_control_manager_private.cc

index 190b7bf..bf43e49 100644 (file)
@@ -162,6 +162,7 @@ class Manager {
                      .SetMime(svc_info)
                      .SetMimeType(svc_info)
                      .SetMimeSubtype(svc_info).Build();
+    aul_svc_info_destroy(svc_info);
     if (info == nullptr) return nullptr;
 
     return std::shared_ptr<AppControlInfo>(info);