Subject: Re: [PATCH] ares_parse_soa_reply: Do not leak rr_name on allocation failure

Re: [PATCH] ares_parse_soa_reply: Do not leak rr_name on allocation failure

From: David Drysdale <drysdale_at_google.com>
Date: Tue, 20 May 2014 14:43:42 +0100

Don't you also need to set status = ARES_ENOMEM; before the goto
failed_stat ?

On Mon, May 19, 2014 at 8:04 PM, Jakub Hrozek <jhrozek_at_redhat.com> wrote:

> Hi,
>
> attached is a simple patch that prevents a leak in case malloc failed.
>
> Found by Coverity scanner.
>
Received on 2014-05-20