This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] getaddrinfo: Fix resource leak after strdup failure in gethosts [BZ #25425]
- From: Siddhesh Poyarekar <siddhesh at gotplt dot org>
- To: Florian Weimer <fweimer at redhat dot com>, libc-alpha at sourceware dot org
- Date: Mon, 20 Jan 2020 22:51:09 +0530
- Subject: Re: [PATCH] getaddrinfo: Fix resource leak after strdup failure in gethosts [BZ #25425]
- References: <87eevuukon.fsf@oldenburg2.str.redhat.com>
On 20/01/20 10:30 pm, Florian Weimer wrote:
> Filip Ochnik spotted that one of the error jumps in gethosts fails to
> call __resolv_context_put to release the resolver context.
>
> Fixes commit 352f4ff9a268b81ef5d4b2413f582565806e4790 ("resolv:
> Introduce struct resolv_context [BZ #21668]") and commit
> 964263bb8d650f1681665c55704fb01a8e725621 ("getaddrinfo: Release
> resolver context on error in gethosts [BZ #21885]").
>
OK for master.
Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>