Hello,

a pointer p is freed twice in ldapclient.c.

diff --git usr.bin/ldap/ldapclient.c usr.bin/ldap/ldapclient.c
index 02b15e0669b..336b9430325 100644
--- usr.bin/ldap/ldapclient.c
+++ usr.bin/ldap/ldapclient.c
@@ -477,7 +477,6 @@ ldapc_printattr(struct ldapc *ldap, const char *key,
         }

         printf("%s: %s\n", key, p);
-        free(p);
     }

     free(p);

--
Kind regards,
Ville Valkonen

Reply via email to