v2.40.20 appears to have introduced a small memory leak of the filename that I think was via the change in commit 475764fc
This change should ensure the GFile instance is unreferenced for all paths.
As originally suggested in https://github.com/GNOME/librsvg/pull/3
mentioned in commit bd2d434e
This will create a new commit in order to revert the existing changes.