repository: Do not double-free config