Free memory in case of error of interruption, max cliques (#513).