winpr-handle: fixed mem leak when closing named pipes

This commit is contained in:
Bernhard Miklautz 2013-10-15 13:03:30 +02:00
parent f24cd91bae
commit 0cc918a1d5

View File

@ -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;
}