From: Ulrich Drepper Date: Mon, 17 Mar 1997 03:42:07 +0000 (+0000) Subject: (__big_delete): Don't call __free_ovflpage without testing for X-Git-Tag: cvs/glibc-2_0_4~61 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=347415b76e07cf0c885d99933ca6762caadc0fa8;p=thirdparty%2Fglibc.git (__big_delete): Don't call __free_ovflpage without testing for last_bfp to be NULL. --- diff --git a/db/hash/hash_bigkey.c b/db/hash/hash_bigkey.c index d2a7dfd5977..d80ebedb078 100644 --- a/db/hash/hash_bigkey.c +++ b/db/hash/hash_bigkey.c @@ -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--;