projects
/
platform
/
upstream
/
freerdp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f231f3f
)
Fixed coverity issue 1047596
author
Armin Novak
<anovak@thinstuff.com>
Wed, 28 Aug 2013 15:51:43 +0000
(17:51 +0200)
committer
Armin Novak
<anovak@thinstuff.com>
Thu, 5 Sep 2013 10:14:32 +0000
(12:14 +0200)
winpr/libwinpr/synch/event.c
patch
|
blob
|
history
diff --git
a/winpr/libwinpr/synch/event.c
b/winpr/libwinpr/synch/event.c
index
ece585c
..
3b96127
100644
(file)
--- a/
winpr/libwinpr/synch/event.c
+++ b/
winpr/libwinpr/synch/event.c
@@
-70,12
+70,14
@@
HANDLE CreateEventW(LPSECURITY_ATTRIBUTES lpEventAttributes, BOOL bManualReset,
if (event->pipe_fd[0] < 0)
{
fprintf(stderr, "CreateEventW: failed to create event\n");
+ free(event);
return NULL;
}
#else
if (pipe(event->pipe_fd) < 0)
{
fprintf(stderr, "CreateEventW: failed to create event\n");
+ free(event);
return NULL;
}
#endif