From 0b52d38672cff20f0f23c8e9e4946bc189b4d9f5 Mon Sep 17 00:00:00 2001 From: aschrijver Date: Tue, 21 Oct 2008 11:33:37 +0000 Subject: Oops, freed to much memory. --- usr.sbin/ypldap/ldapclient.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'usr.sbin') 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 @@ -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; -- cgit v1.2.3