(__big_delete): Don't call __free_ovflpage without testing for
authordrepper <drepper>
Sun, 16 Mar 1997 17:37:47 +0000 (17:37 +0000)
committerdrepper <drepper>
Sun, 16 Mar 1997 17:37:47 +0000 (17:37 +0000)
last_bfp to be NULL.

db/hash/hash_bigkey.c

index d2a7dfd..d80ebed 100644 (file)
@@ -249,7 +249,7 @@ __big_delete(hashp, bufp)
        bufp->flags |= BUF_MOD;
        if (rbufp)
                __free_ovflpage(hashp, rbufp);
-       if (last_bfp != rbufp)
+       if (last_bfp && last_bfp != rbufp)
                __free_ovflpage(hashp, last_bfp);
 
        hashp->NKEYS--;