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:
parent
df9d0fab80
commit
724bc7acd2
@ -106,7 +106,7 @@ char* GetDeviceFileUnixDomainSocketFilePathA(LPCSTR lpName)
|
||||
|
||||
if (!lpFileName)
|
||||
{
|
||||
free(lpFilePath);
|
||||
free(lpPipePath);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user