On the energy of inviscid singular flows