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