Flare-like energy release by flux pile-up reconnection