ret = stickerd_db_get_sticker_info_by_record_id(record_id, sticker_info);
if (ret != STICKERD_SERVER_ERROR_NONE) {
LOGE("Failed to get sticker info");
+
+ if (sticker_info->app_id)
+ free(sticker_info->app_id);
+
+ if (sticker_info->uri)
+ free(sticker_info->uri);
+
+ if (sticker_info->thumbnail)
+ free(sticker_info->thumbnail);
+
+ if (sticker_info->keyword)
+ free(sticker_info->keyword);
+
+ if (sticker_info->group)
+ free(sticker_info->group);
+
+ if (sticker_info->description)
+ free(sticker_info->description);
+
+ if (sticker_info->date)
+ free(sticker_info->date);
+
free(sticker_info);
sticker_info = NULL;
return STICKERD_SERVER_ERROR_OPERATION_FAILED;