[vlc-commits] linux: fix semaphore leak in vlc_getaddrinfo_i11e()
Zhao Zhili
git at videolan.org
Tue Sep 19 20:43:06 CEST 2017
vlc | branch: master | Zhao Zhili <wantlamy at gmail.com> | Wed Sep 20 00:09:39 2017 +0800| [9b06bfdd66e0365059809974e44ea0975135c112] | committer: Rémi Denis-Courmont
linux: fix semaphore leak in vlc_getaddrinfo_i11e()
Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9b06bfdd66e0365059809974e44ea0975135c112
---
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;
More information about the vlc-commits
mailing list