How did you build the file? Did you copy it to your own project or did you make sure that the PPU that is provided either with Lazarus (on Windows) or with the FPC installer was updated?
I installed Lazarus 2.2.0 / FPC 3.2.2, Windows 11 64 bit.
I opened csvdataset.pp file in Lazarus IDE, and ran Run>Build File menu. Now csvdataset.ppu file is more recent than csvdataset.pp file.
But the problem still exists --- memory leak is reported at lresources.pp file. Lines 4274,3153, 3180, if exclude control related messages.