mirror of
https://github.com/MariaDB/server.git
synced 2026-01-06 05:22:24 +03:00
fix the mem leak. closes #199
git-svn-id: file:///svn/tokudb@1205 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
@@ -275,7 +275,7 @@ static void step_name (void) {
|
||||
assert(cursor_count_n_items==calc_n_items);
|
||||
r = name_cursor->c_get(name_cursor, &nc_key, &nc_data, DB_FIRST);
|
||||
if (r==DB_NOTFOUND) {
|
||||
nc_key.data = malloc(1);
|
||||
nc_key.data = realloc(nc_key.data, 1);
|
||||
((char*)nc_key.data)[0]=0;
|
||||
cursor_count_n_items=0;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user