diff options
author | Semun Lee <semun.lee@samsung.com> | 2018-07-16 09:36:14 +0900 |
---|---|---|
committer | Semun Lee <semun.lee@samsung.com> | 2018-07-16 09:36:14 +0900 |
commit | e60c3a90e400a883c0c822a24e4b8ca9f504ebc3 (patch) | |
tree | 828fe98b203d442f856fa7bfdc298d63a10a4dad | |
parent | 79ea2d9fc4ec9826291c9d2d0c32caf0ac285c01 (diff) | |
download | shortcut-e60c3a90e400a883c0c822a24e4b8ca9f504ebc3.tar.gz shortcut-e60c3a90e400a883c0c822a24e4b8ca9f504ebc3.tar.bz2 shortcut-e60c3a90e400a883c0c822a24e4b8ca9f504ebc3.zip |
Fix resource leak
Change-Id: Icbb9a266e6304abb786f63675424239ca5179762
Signed-off-by: Semun Lee <semun.lee@samsung.com>
-rwxr-xr-x | lib/src/shortcut_db.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/src/shortcut_db.c b/lib/src/shortcut_db.c index 6e76def..ad76302 100755 --- a/lib/src/shortcut_db.c +++ b/lib/src/shortcut_db.c @@ -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); |