Fix leak with atom_cds