kernelbase: Don't free pathname if query failed. Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=57586 Signed-off-by: Eric Pouech <epouech@codeweavers.com>