Plasma heating induced by tadpole-like downflows in the flaring solar corona