Commit 9b06bfdd authored by Zhao Zhili's avatar Zhao Zhili Committed by Rémi Denis-Courmont

linux: fix semaphore leak in vlc_getaddrinfo_i11e()

Signed-off-by: Rémi Denis-Courmont's avatarRémi Denis-Courmont <remi@remlab.net>
parent 6d3bfa3f
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment