remote.c: make singular free_ref() public