Fixed coverity issue 1047602
This commit is contained in:
parent
53e0d53b99
commit
64c3aafcc6
@ -65,7 +65,13 @@ BOOL CreatePipe(PHANDLE hReadPipe, PHANDLE hWritePipe, LPSECURITY_ATTRIBUTES lpP
|
||||
pWritePipe = (WINPR_PIPE*) malloc(sizeof(WINPR_PIPE));
|
||||
|
||||
if (!pReadPipe || !pWritePipe)
|
||||
{
|
||||
if (pReadPipe)
|
||||
free(pReadPipe);
|
||||
if (pWritePipe)
|
||||
free(pWritePipe);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
pReadPipe->fd = pipe_fd[0];
|
||||
pWritePipe->fd = pipe_fd[1];
|
||||
|
Loading…
Reference in New Issue
Block a user