diff options
author | Pierre-Yves Ritschard <pyr@cvs.openbsd.org> | 2010-06-14 13:15:23 +0000 |
---|---|---|
committer | Pierre-Yves Ritschard <pyr@cvs.openbsd.org> | 2010-06-14 13:15:23 +0000 |
commit | 11f02b14e7c65a059b959b3d10c12503175ffde8 (patch) | |
tree | 4a112cdcf45e15f5d08d4ed8b7668d0187ef8e39 /usr.sbin/ypldap/aldap.c | |
parent | 5d5f6ceae173c1e38abb6b03a8cab50a45ce9ce7 (diff) |
fix a memory leak, from aschrivjer
Diffstat (limited to 'usr.sbin/ypldap/aldap.c')
-rw-r--r-- | usr.sbin/ypldap/aldap.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/ypldap/aldap.c b/usr.sbin/ypldap/aldap.c index 067e7ffdcb9..f201cbc52bd 100644 --- a/usr.sbin/ypldap/aldap.c +++ b/usr.sbin/ypldap/aldap.c @@ -1,5 +1,5 @@ -/* $Id: aldap.c,v 1.23 2010/04/28 10:05:28 jasper Exp $ */ -/* $OpenBSD: aldap.c,v 1.23 2010/04/28 10:05:28 jasper Exp $ */ +/* $Id: aldap.c,v 1.24 2010/06/14 13:15:22 pyr Exp $ */ +/* $OpenBSD: aldap.c,v 1.24 2010/06/14 13:15:22 pyr Exp $ */ /* * Copyright (c) 2008 Alexander Schrijver <aschrijver@openbsd.org> @@ -55,6 +55,7 @@ aldap_close(struct aldap *al) if (close(al->ber.fd) == -1) return (-1); + ber_free(&al->ber); free(al); return (0); |