diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2019-01-26 10:58:55 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2019-01-26 10:58:55 +0000 |
commit | a9277508c60fbb6f66f0181eecd382c927dbad76 (patch) | |
tree | a3f996d0466441f38c7692397b0e6d6f6caaeaef /usr.bin | |
parent | 966c69364865d7631e572a59da68834e3d527d89 (diff) |
avoid double free, instead flowing through a free(NULL)
from Ville Valkonen
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/ldap/ldapclient.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/usr.bin/ldap/ldapclient.c b/usr.bin/ldap/ldapclient.c index 02b15e0669b..9763b8eaaf2 100644 --- a/usr.bin/ldap/ldapclient.c +++ b/usr.bin/ldap/ldapclient.c @@ -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); |