X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=isam%2Fmemory.c;fp=isam%2Fmemory.c;h=475b5fc01a7ab8a1eedd1808a3a13e5d92f696d4;hb=fa2e85c18627b18737723d91e08c752d9931f589;hp=cd90dcbd88ed5eb1844967ee6787769c9af59b07;hpb=b7f00ecbe71200814196edcb38c378dcd4acaacc;p=idzebra-moved-to-github.git diff --git a/isam/memory.c b/isam/memory.c index cd90dcb..475b5fc 100644 --- a/isam/memory.c +++ b/isam/memory.c @@ -4,7 +4,10 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: memory.c,v $ - * Revision 1.7 1995-12-06 09:59:46 quinn + * Revision 1.8 1995-12-06 14:48:27 quinn + * Fixed some strange bugs. + * + * Revision 1.7 1995/12/06 09:59:46 quinn * Fixed memory-consumption bug in memory.c * Added more blocksizes to the default ISAM configuration. * @@ -347,7 +350,8 @@ int is_m_read_record(is_mtable *tab, void *buf) { if (!mbuf->next) /* end of mblock */ { - if (tab->cur_mblock->state == IS_MBSTATE_CLEAN) + if (tab->cur_mblock->state == IS_MBSTATE_CLEAN && + tab->cur_mblock->diskpos > 0) { xfree_mbufs(tab->cur_mblock->data); tab->cur_mblock->data = 0;