there is a bug in this node - thanks for reporting it:
these curves need to be disposed, I will report it to the Revit team.
potential fix: