This patch includes the fix of svace defect on latest CAPI code.
Change-Id: Ibc49749a28313c2efac315f9f5d551a4a522ef19
Signed-off-by: Anuj Bhumiya <anuj.bhumiya@samsung.com>
svc = __bt_gatt_service_create(property.uuid,
BT_GATT_SERVICE_TYPE_PRIMARY);
if (svc == NULL) {
+ bluetooth_gatt_free_service_property(&property);
BT_ERR("svc is NULL");
return NULL;
}
svc = __bt_gatt_service_create(property.uuid,
BT_GATT_SERVICE_TYPE_PRIMARY);
if (svc == NULL) {
+ bluetooth_gatt_free_service_property(&property);
BT_ERR("svc is NULL");
return NULL;
}
}
*app_id = strdup(app_handle);
+ g_free(app_handle);
if (*app_id == NULL)
return BT_ERROR_OUT_OF_MEMORY;