key_A and key_B had 3 references, only 2 were freed.