Fix memory leak

This commit is contained in:
whydoubt 2005-03-07 04:11:27 +00:00
parent 0421fc8efe
commit 3f79bc4884
2 changed files with 6 additions and 3 deletions

View File

@ -1,3 +1,6 @@
Sun Mar 6 22:09:09 CST 2005 Jeff Smith <whydoubt@yahoo.com>
* src/libmdb/table.c: Fix memory leak
Fri Feb 25 23:02:42 CST 2005 Jeff Smith <whydoubt@yahoo.com>
* src/libmdb/money.c: Fix bad declaration
* src/libmdb/write.c: Rework of mdb_crack_row

View File

@ -79,10 +79,10 @@ MdbTableDef *mdb_read_table(MdbCatalogEntry *entry)
int len, row_start, pg_row;
char *buf;
table = mdb_alloc_tabledef(entry);
mdb_read_pg(mdb, entry->table_pg);
if (mdb->pg_buf[0] != 0x02) return NULL; /* not a valid table def page */
if (mdb->pg_buf[0] != 0x02) /* not a valid table def page */
return NULL;
table = mdb_alloc_tabledef(entry);
len = mdb_pg_get_int16(mdb,8);