winpr/event: fix file descriptor leak
authorBernhard Miklautz <bernhard.miklautz@thincast.com>
Mon, 23 May 2016 11:04:44 +0000 (13:04 +0200)
committerBernhard Miklautz <bernhard.miklautz@thincast.com>
Mon, 23 May 2016 11:04:44 +0000 (13:04 +0200)
commit5d030534dba1e34473c3fa1a21c357348d0f110f
treee16ac06e2e8cd2cd8879b761ceda070e111eb136
parentaeabb9553170543197dffda680d38802270a79d3
winpr/event: fix file descriptor leak

SetEventFileDescriptor overrides the internal file descriptor of the
event but didn't close it. Now if the descriptor is closed if it isn't
marked as attached.
winpr/libwinpr/synch/event.c