Investigation of the energy release in flare kernels