1
0
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:
Rich Prohaska
2007-12-18 18:38:26 +00:00
parent 4a1ff1e7ca
commit a7970a58d8

View File

@@ -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 {