1
0
mirror of https://github.com/openbsd/src.git synced 2025-01-10 06:47:55 -08:00

avoid double free, instead flowing through a free(NULL)

from Ville Valkonen
This commit is contained in:
deraadt 2019-01-26 10:58:54 +00:00
parent 585515d040
commit fcdf6930fd

View File

@ -1,4 +1,4 @@
/* $OpenBSD: ldapclient.c,v 1.11 2018/11/29 14:25:07 tedu Exp $ */
/* $OpenBSD: ldapclient.c,v 1.12 2019/01/26 10:58:54 deraadt Exp $ */
/*
* Copyright (c) 2018 Reyk Floeter <reyk@openbsd.org>
@ -477,7 +477,6 @@ ldapc_printattr(struct ldapc *ldap, const char *key,
}
printf("%s: %s\n", key, p);
free(p);
}
free(p);