If the package is not installed, calling __create_rua_info() will be failed.
Change-Id: Ie54e3824504d9f88d034a4ebf7266d21c303ba4c
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
for (row = 0; row < nrows; ++row) {
rua_history_get_rec(&rec, table, nrows, ncols, row);
info = __create_rua_info(&rec);
- if (!info) {
- rua_history_unload_db(&table);
- g_list_free_full(list, __destroy_rua_info);
- return RUA_ERROR_OUT_OF_MEMORY;
- }
-
- list = g_list_append(list, info);
+ if (info)
+ list = g_list_append(list, info);
}
rua_history_unload_db(&table);