comparison src/database.c @ 240:fbff73fe5b40 noffle

[svn] * src/client.c: That wasn't a memory leak fixed on Feb 8th. That was a cockup cause by my forgetting that Cont_app takes ownership of an overview. Revert it and add comment to Cont_app. Spotted with the aid of valgrind. * src/post.c,src/pseudo.c * src/util.c: Fix out of bounds write bug spotted by valgrind. * src/database.c: Fix minor memory leak spotted by valgrind. Valgrind is at http://devel-home.kde.org/~sewardj/.
author bears
date Tue, 26 Feb 2002 17:13:31 +0000
parents 24d4cd032da5
children 4e69e9b722ae
comparison
equal deleted inserted replaced
239:2b7ddb90d9b2 240:fbff73fe5b40
1 /* 1 /*
2 database.c 2 database.c
3 3
4 $Id: database.c 316 2001-10-31 11:44:53Z bears $ 4 $Id: database.c 371 2002-02-26 17:13:31Z bears $
5 5
6 Uses GNU gdbm library. Using Berkeley db (included in libc6) was 6 Uses GNU gdbm library. Using Berkeley db (included in libc6) was
7 cumbersome. It is based on Berkeley db 1.85, which has severe bugs 7 cumbersome. It is based on Berkeley db 1.85, which has severe bugs
8 (e.g. it is not recommended to delete or overwrite entries with 8 (e.g. it is not recommended to delete or overwrite entries with
9 overflow pages). 9 overflow pages).
604 || ( days > res && res != 0 ) ) 604 || ( days > res && res != 0 ) )
605 res = days; 605 res = days;
606 606
607 Itl_next( refs ); /* Throw away group number */ 607 Itl_next( refs ); /* Throw away group number */
608 } 608 }
609 del_Itl( refs );
609 610
610 return res; 611 return res;
611 } 612 }
612 613
613 Bool 614 Bool