winpr/io/device: Fix leak found by covscan

leaked_storage: Variable "lpPipePath" going out of scope leaks the storage it points to.
This commit is contained in:
Ondrej Holy 2018-08-20 09:50:43 +02:00
parent df9d0fab80
commit 724bc7acd2
1 changed files with 1 additions and 1 deletions

View File

@ -106,7 +106,7 @@ char* GetDeviceFileUnixDomainSocketFilePathA(LPCSTR lpName)
if (!lpFileName)
{
free(lpFilePath);
free(lpPipePath);
return NULL;
}