author_x *author = NULL;
GList *bind_params = NULL;
sqlite3 *db;
- sqlite3_stmt *stmt;
+ sqlite3_stmt *stmt = NULL;
pkgmgrinfo_filter_x *tmp_filter = NULL;
bool is_check_storage = true;
g_list_free_full(bind_params, free);
sqlite3_close_v2(db);
- sqlite3_finalize(stmt);
+ if (stmt)
+ sqlite3_finalize(stmt);
return ret;
}