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:
parent
585515d040
commit
fcdf6930fd
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user