From: Kurt Zeilenga Date: Fri, 28 May 1999 20:19:28 +0000 (+0000) Subject: ber_clear() no longer needed. Removed. X-Git-Tag: OPENLDAP_REL_ENG_2_BP~490 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=27caa58f5138839cc0e120ab91ea05dbad5e6a1c;p=openldap ber_clear() no longer needed. Removed. --- diff --git a/libraries/liblber/io.c b/libraries/liblber/io.c index 897378399b..2f675e09d4 100644 --- a/libraries/liblber/io.c +++ b/libraries/liblber/io.c @@ -179,8 +179,10 @@ ber_free( BerElement *ber, int freebuf ) if ( freebuf && ber->ber_buf != NULL ) free( ber->ber_buf ); + ber->ber_buf = NULL; ber->ber_valid = LBER_UNINITIALIZED; + free( (char *) ber ); } @@ -593,18 +595,3 @@ fill_buffer: assert( 0 ); /* ber structure is messed up ?*/ return LBER_DEFAULT; } - -void ber_clear( BerElement *ber, int freebuf ) -{ - assert( ber != NULL ); - assert( BER_VALID( ber ) ); - - if ((freebuf) && (ber->ber_buf)) - free( ber->ber_buf ); - ber->ber_buf = NULL; - ber->ber_rwptr = NULL; - ber->ber_end = NULL; - - ber->ber_valid = LBER_UNINITIALIZED; -} -