Similarly to gethostbyname3(), the @addr must be freed on return from the function. Signed-off-by: Michal Privoznik <mprivozn@xxxxxxxxxx> --- tools/nss/libvirt_nss.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/nss/libvirt_nss.c b/tools/nss/libvirt_nss.c index 8fe5a6d1cf..6e332f7578 100644 --- a/tools/nss/libvirt_nss.c +++ b/tools/nss/libvirt_nss.c @@ -451,6 +451,7 @@ NSS_NAME(gethostbyname4)(const char *name, struct gaih_addrtuple **pat, *herrnop = NETDB_SUCCESS; ret = NSS_STATUS_SUCCESS; cleanup: + free(addr); return ret; } #endif /* HAVE_STRUCT_GAIH_ADDRTUPLE */ -- 2.21.0 -- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list