If you run anything that calls cpathGetNextFile in valgrind, it will also let you know about this issue. The problem is here: <img width="461" alt="Screenshot 2023-05-08 at 15 40 30" src="https://user-images.githubusercontent.com/44585538/236839625-1a35e778-e24b-4381-8688-8da2256f4f91.png">