From: Kurt Zeilenga Date: Fri, 29 Jan 1999 06:07:02 +0000 (+0000) Subject: zap ber buf pointer on free. X-Git-Tag: OPENLDAP_SLAPD_BACK_LDAP~678 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=4040fc39cae77ca30e9ab335ae0ee29c60b43c14;p=openldap zap ber buf pointer on free. --- diff --git a/libraries/liblber/io.c b/libraries/liblber/io.c index 1aecfb8185..f94aaa7477 100644 --- a/libraries/liblber/io.c +++ b/libraries/liblber/io.c @@ -264,6 +264,7 @@ ber_free( BerElement *ber, int freebuf ) { if ( freebuf && ber->ber_buf != NULL ) free( ber->ber_buf ); + ber->ber_buf = NULL; free( (char *) ber ); }