]> git.sur5r.net Git - openldap/commitdiff
zap ber buf pointer on free.
authorKurt Zeilenga <kurt@openldap.org>
Fri, 29 Jan 1999 06:07:02 +0000 (06:07 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Fri, 29 Jan 1999 06:07:02 +0000 (06:07 +0000)
libraries/liblber/io.c

index 1aecfb81854f850f820afa12b367dac60b6660d5..f94aaa74776f61a9d5684e1d6d8f37fd35c7e185 100644 (file)
@@ -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 );
 }