goto free_memory;
if (sticker_info->type == STICKER_URI_TYPE_LOCAL_PATH) {
+ char *old_uri = sticker_info->uri;
if (_check_file_exist(sticker_info->app_id, sticker_info->uri) == 0) {
sticker_info->uri = _convert_sticker_uri(sticker_info->uri, sticker_info->app_id);
+
+ free(old_uri);
+ old_uri = NULL;
+
if (!sticker_info->uri)
goto free_memory;
} else {
sticker_info->thumbnail = _get_string_from_object(info_object, "thumbnail");
if (sticker_info->thumbnail && sticker_info->thumbnail[0] != '\0') {
+ char *old_thumbnail = sticker_info->thumbnail;
if (_check_file_exist(sticker_info->app_id, sticker_info->thumbnail) == 0) {
sticker_info->thumbnail = _convert_sticker_uri(sticker_info->thumbnail, sticker_info->app_id);
+
+ free(old_thumbnail);
+ old_thumbnail = NULL;
+
if (!sticker_info->thumbnail)
goto free_memory;
} else {