]> granicus.if.org Git - libevent/commit
Fix potential fd leak in listener_read_cb()
authorMark Ellzey <socket@gmail.com>
Tue, 28 Apr 2015 02:59:42 +0000 (22:59 -0400)
committerMark Ellzey <socket@gmail.com>
Tue, 28 Apr 2015 02:59:42 +0000 (22:59 -0400)
commit571dbac81af7a378d6fad0728c3eb3d7be89785f
tree7517b83f15062020c1d29abd5bc38a73303998b0
parentc51b159cff9f5e86696f5b9a4c6f517276056258
Fix potential fd leak in listener_read_cb()

As pointed out by harlan_ in #libevent after running a coverity sweep.
If the listener is free'd, 'new_fd' is never closed.
listener.c