Regions of primary energy release of solar flares associated with singularities in the magnetic field