[libvirt] [PATCH 2/5] nss: Drop needless free() in gethostbyname3()

Erik Skultety eskultet at redhat.com
Mon Sep 30 10:03:03 UTC 2019


On Sat, Sep 28, 2019 at 10:05:30PM +0200, Michal Privoznik wrote:
> The findLease() function allocates @addr array iff no error
> occurred and at least one satisfactory record was found.
> Therefore, there is no need to call free() if findLease() failed,
> or did not find any records as addr == NULL.
>
> Signed-off-by: Michal Privoznik <mprivozn at redhat.com>
> ---
Reviewed-by: Erik Skultety <eskultet at redhat.com>




More information about the libvir-list mailing list