Skip to content
Commit 8b222fa3 authored by Florian Weimer's avatar Florian Weimer
Browse files

getaddrinfo: Fix resource leak after strdup failure in gethosts [BZ #25425]



Filip Ochnik spotted that one of the error jumps in gethosts fails to
call __resolv_context_put to release the resolver context.

Fixes commit 352f4ff9 ("resolv:
Introduce struct resolv_context [BZ #21668]") and commit
964263bb ("getaddrinfo: Release
resolver context on error in gethosts [BZ #21885]").

Reviewed-by: default avatarSiddhesh Poyarekar <siddhesh@sourceware.org>
parent 92ce43ee
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment