_DBG("update - app_usage for app_id(%s), for resource(%d), by usage(%d)", app_id, resource_id, app_usage);
//_DBG("session usage bt %d, wifi %d, cpu %d, dsp %d, dn %d", temp->rId_ble, temp->rId_wifi, temp->rId_cpu,
//temp->rId_display, temp->rId_device_network);
+ g_free(app_id);
} else {
appid_usage_s *temp = (appid_usage_s *)calloc(1, sizeof(appid_usage_s));
if (temp == NULL) {
else if (resource_id == BM_PLUGIN_ID_CPU)
temp->rId_cpu = app_usage;
else if (resource_id == BM_PLUGIN_ID_DISPLAY)
- temp->rId_display = app_usage;
+ temp->rId_display = app_usage;
else if (resource_id == BM_PLUGIN_ID_DEVICE_NETWORK)
temp->rId_device_network = app_usage;
#ifdef DISABLE_FEATURE_DATA_FROM_GPS_HRM_PLUGIN