https://bugs.winehq.org/show_bug.cgi?id=51438
--- Comment #7 from Bernhard Übelacker bernhardu@mailbox.org --- I retried on tag wine-6.12 with patches applied from wine-staging of 163f74fe61851.
There I added the line like this:
--- a/server/fd.c +++ b/server/fd.c @@ -2828,6 +2828,7 @@ static void set_fd_name( struct fd *fd, ... ... free( fd->unix_name ); + fd->closed->unlink_name = fd->unlink_name = name; fd->closed->unix_name = fd->unix_name = realpath( name, NULL ); ...
https://github.com/wine-staging/wine-staging/commit/750044c08c49c7a117fcc911...
And the free fault is no longer visible and valgrind run shows nothing related to the free.