mirror of
https://github.com/MariaDB/server.git
synced 2025-01-31 19:11:46 +01:00
Addresses #993
Cleanup git-svn-id: file:///svn/mysql/tokudb-engine/src@5160 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
parent
d4dc06fb6b
commit
a099911b21
1 changed files with 10 additions and 2 deletions
|
@ -2770,8 +2770,16 @@ int ha_tokudb::index_read(uchar * buf, const uchar * key, uint key_len, enum ha_
|
|||
if (error && (tokudb_debug & TOKUDB_DEBUG_ERROR))
|
||||
TOKUDB_TRACE("error:%d:%d\n", error, find_flag);
|
||||
cleanup:
|
||||
if (last_key.data && last_key.flags==DB_DBT_REALLOC) free(last_key.data);
|
||||
if (row.data && row.flags==DB_DBT_REALLOC) free(row.data);
|
||||
if (last_key.data && last_key.flags==DB_DBT_REALLOC) {
|
||||
free(last_key.data);
|
||||
last_key.data = NULL;
|
||||
last_key.flags = 0;
|
||||
}
|
||||
if (row.data && row.flags==DB_DBT_REALLOC) {
|
||||
free(row.data);
|
||||
row.data = NULL;
|
||||
row.flags = 0;
|
||||
}
|
||||
//
|
||||
// Using dbt_copy_heavi (used with c_getf_heavi) will set
|
||||
// flags==DB_DBT_REALLOC.
|
||||
|
|
Loading…
Add table
Reference in a new issue