Use free_symbols.