aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/db/recno/rec_put.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/db/recno/rec_put.c')
-rw-r--r--lib/libc/db/recno/rec_put.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/libc/db/recno/rec_put.c b/lib/libc/db/recno/rec_put.c
index 9dcdc9c30bf4..515c90a46518 100644
--- a/lib/libc/db/recno/rec_put.c
+++ b/lib/libc/db/recno/rec_put.c
@@ -32,7 +32,7 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char sccsid[] = "@(#)rec_put.c 8.1 (Berkeley) 6/4/93";
+static char sccsid[] = "@(#)rec_put.c 8.2 (Berkeley) 9/7/93";
#endif /* LIBC_SCCS and not lint */
#include <sys/types.h>
@@ -72,6 +72,12 @@ __rec_put(dbp, key, data, flags)
t = dbp->internal;
+ /* Toss any page pinned across calls. */
+ if (t->bt_pinned != NULL) {
+ mpool_put(t->bt_mp, t->bt_pinned, 0);
+ t->bt_pinned = NULL;
+ }
+
switch (flags) {
case R_CURSOR:
if (!ISSET(t, B_SEQINIT))