[Git][wine/wine][master] kernelbase: Don't free pathname if query failed.