summaryrefslogtreecommitdiff
path: root/usr.sbin/ypldap
diff options
context:
space:
mode:
authoraschrijver <aschrijver@cvs.openbsd.org>2008-10-21 11:33:37 +0000
committeraschrijver <aschrijver@cvs.openbsd.org>2008-10-21 11:33:37 +0000
commit0b52d38672cff20f0f23c8e9e4946bc189b4d9f5 (patch)
treecceaf99ca40b068b63ece2433d8724811888ad2b /usr.sbin/ypldap
parentcbcad148f517cde7f7498938f5fe72bdce1c7044 (diff)
Oops, freed to much memory.
Diffstat (limited to 'usr.sbin/ypldap')
-rw-r--r--usr.sbin/ypldap/ldapclient.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/usr.sbin/ypldap/ldapclient.c b/usr.sbin/ypldap/ldapclient.c
index b1c4954d4d7..c707523b191 100644
--- a/usr.sbin/ypldap/ldapclient.c
+++ b/usr.sbin/ypldap/ldapclient.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ldapclient.c,v 1.7 2008/10/20 18:19:25 aschrijver Exp $ */
+/* $OpenBSD: ldapclient.c,v 1.8 2008/10/21 11:33:36 aschrijver Exp $ */
/*
* Copyright (c) 2008 Alexander Schrijver <aschrijver@openbsd.org>
@@ -100,9 +100,6 @@ aldap_openidm(struct idm *idm)
fd = -1;
} while ((res0 = res0->ai_next) != NULL);
- freeaddrinfo(idm->idm_addrinfo);
- idm->idm_addrinfo = NULL;
-
if(fd == -1)
return NULL;