mirror of
https://github.com/mdbtools/mdbtools.git
synced 2025-04-05 20:31:00 +08:00
Fix memory leak
This commit is contained in:
parent
0421fc8efe
commit
3f79bc4884
@ -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
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user