winpr-handle: fixed mem leak when closing named pipes
This commit is contained in:
parent
f24cd91bae
commit
0cc918a1d5
@ -173,7 +173,10 @@ BOOL CloseHandle(HANDLE hObject)
|
||||
if (pipe->serverfd != -1)
|
||||
close(pipe->serverfd);
|
||||
|
||||
free(Object);
|
||||
free(pipe->lpFileName);
|
||||
free(pipe->lpFilePath);
|
||||
free(pipe->name);
|
||||
free(pipe);
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user