Fix resource leak 17/184117/1
authorSemun Lee <semun.lee@samsung.com>
Mon, 16 Jul 2018 00:36:14 +0000 (09:36 +0900)
committerSemun Lee <semun.lee@samsung.com>
Mon, 16 Jul 2018 00:36:14 +0000 (09:36 +0900)
Change-Id: Icbb9a266e6304abb786f63675424239ca5179762
Signed-off-by: Semun Lee <semun.lee@samsung.com>
lib/src/shortcut_db.c

index 6e76def..ad76302 100755 (executable)
@@ -395,6 +395,7 @@ EAPI int shortcut_db_get_list(const char *package_name, GList **shortcut_list)
                shortcut = (shortcut_info_s *)calloc(sizeof(shortcut_info_s), 1);
                if (shortcut == NULL) {
                        free(i18n_name);
+                       free(i18n_icon);
                        break;
                }
                shortcut->package_name = strdup(package_name);