]> git.sur5r.net Git - openldap/commitdiff
ber_clear() no longer needed. Removed.
authorKurt Zeilenga <kurt@openldap.org>
Fri, 28 May 1999 20:19:28 +0000 (20:19 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Fri, 28 May 1999 20:19:28 +0000 (20:19 +0000)
libraries/liblber/io.c

index 897378399b48f9683be573b89286e82ee9d6a7f6..2f675e09d44c39b8aa02cff0d97b9a27cc4a1d6d 100644 (file)
@@ -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;
-}
-