core: plug leak