diff --git a/tools/nss/libvirt_nss.c b/tools/nss/libvirt_nss.c index 8fe5a6d1cf8d8713ffa5ff8e88c9675a46166ad6..6e332f75784719fd3343e5399c433b62d80f4053 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 */