windows: Fix a memory leak in FileSystem::longWinPath
authorJocelyn Turcotte <jturcotte@woboq.com>
Mon, 24 Jul 2017 13:11:30 +0000 (15:11 +0200)
committerJocelyn Turcotte <jturcotte@woboq.com>
Mon, 24 Jul 2017 15:54:29 +0000 (17:54 +0200)
commit5a1bf7d8feb1900fd93ca4f9c613cef4c9cbff93
tree2c1a8850e1d13d1cb2e8f2aaf8a66cfed9ddbfb1
parent075c423c62da59cf12bdba676a7b17efa274a708
windows: Fix a memory leak in FileSystem::longWinPath

Also use c_path_to_UNC directly instead of doing an extra
UTF-8->wchar conversion.
src/libsync/filesystem.cpp