From 27caa58f5138839cc0e120ab91ea05dbad5e6a1c Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Fri, 28 May 1999 20:19:28 +0000 Subject: [PATCH] ber_clear() no longer needed. Removed. --- libraries/liblber/io.c | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) 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; -} - -- 2.39.5