nwrap: Fix memory leak in nwrap_he_unload()
authorRobin Hack <hack.robin@gmail.com>
Thu, 8 Oct 2015 13:00:33 +0000 (15:00 +0200)
committerMichael Adam <obnox@samba.org>
Mon, 11 Jan 2016 11:25:28 +0000 (12:25 +0100)
Signed-off-by: Robin Hack <hack.robin@gmail.com>
Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
lib/nss_wrapper/nss_wrapper.c

index 6d83a98320268d75712fa5a7b56cddd1fa718a93..3496162aad69b2f78ce576d12def8fcf03b68a9c 100644 (file)
@@ -2854,6 +2854,7 @@ static void nwrap_he_unload(struct nwrap_cache *nwrap)
 
        nwrap_vector_foreach (ed, nwrap_he->entdata, i)
        {
+               SAFE_FREE(ed->nwrap_addrdata.items);
                SAFE_FREE(ed->ht.h_aliases);
                SAFE_FREE(ed);
        }