Fix memory leak 00/257100/1
authorInHong Han <inhong1.han@samsung.com>
Mon, 19 Apr 2021 09:06:09 +0000 (18:06 +0900)
committerInHong Han <inhong1.han@samsung.com>
Mon, 19 Apr 2021 09:13:07 +0000 (09:13 +0000)
Change-Id: Ia90ca4070338daed610b67608c4767a43e756298

ism/src/tizen_profile.cpp

index 6a0d2da..fefe46e 100644 (file)
@@ -61,5 +61,8 @@ tizen_profile_t _get_tizen_profile()
             g_profile = TIZEN_PROFILE_COMMON;
     }
 
+    if (profileName)
+        free(profileName);
+
     return g_profile;
 }