[vlc-devel] [PATCH] linux: fix semaphore leak in vlc_getaddrinfo_i11e()
Zhao Zhili
quinkblack at foxmail.com
Tue Sep 19 18:14:37 CEST 2017
A non-text attachment was scrubbed...
Name: 0001-linux-fix-semaphore-leak-in-vlc_getaddrinfo_i11e.patch
Type: application/octet-stream
Size: 679 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20170920/6d9b2af1/attachment.obj>
-------------- next part --------------
---
src/linux/getaddrinfo.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/linux/getaddrinfo.c b/src/linux/getaddrinfo.c
index aaba24df88..bd32286d46 100644
--- a/src/linux/getaddrinfo.c
+++ b/src/linux/getaddrinfo.c
@@ -83,6 +83,7 @@ int vlc_getaddrinfo_i11e(const char *name, unsigned port,
val = gai_error(&req);
assert(val != EAI_INPROGRESS);
+ vlc_sem_destroy(&done);
if (val == 0)
*res = req.ar_result;
--
2.13.2
More information about the vlc-devel
mailing list