This function frees the memory allocated for the list and the strings it contains.
A list of directories as returned by `gimp_path_parse()`.