if (ret != SQLITE_OK) {
LOGE("Failed to create sticker_keyword_info table : %s", err);
ret = STICKERD_SERVER_ERROR_DB_FAILED;
+ goto cleanup;
}
ret = sqlite3_exec(db, STICKER_WHITELIST_INFO_CREATE_TABLE, NULL, NULL, &err);
if (ret != SQLITE_OK) {
LOGE("Failed to create sticker_whitelist_info table : %s", err);
ret = STICKERD_SERVER_ERROR_DB_FAILED;
+ goto cleanup;
}
ret = sqlite3_exec(db, "PRAGMA journal_mode = WAL", NULL, NULL, &err);
goto free_memory;
thumbnail = __get_string_from_object(info_object, "thumbnail");
- if (thumbnail)
+ if (thumbnail) {
+ free(thumbnail);
thumbnail = __convert_sticker_uri(thumbnail, appid, app_path);
+ }
description = __get_string_from_object(info_object, "description");
int disp_type = __get_int_from_object(info_object, "display_type");