mirror of
https://github.com/MariaDB/server.git
synced 2025-01-22 23:04:20 +01:00
off-end-of-memory error found by valgrind. Addresses #126
git-svn-id: file:///svn/tokudb@2599 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
parent
fad4cf7bbe
commit
520a93a3e6
1 changed files with 2 additions and 2 deletions
|
@ -281,8 +281,8 @@ int toku_deserialize_brtnode_from (int fd, DISKOFF off, BRTNODE *brtnode, int fl
|
|||
u_int32_t subtree_fingerprint = rbuf_int(&rc);
|
||||
u_int32_t check_subtree_fingerprint = 0;
|
||||
result->u.n.n_children = rbuf_int(&rc);
|
||||
MALLOC_N(result->u.n.n_children, result->u.n.childinfos);
|
||||
MALLOC_N(result->u.n.n_children-1, result->u.n.childkeys);
|
||||
MALLOC_N(result->u.n.n_children+1, result->u.n.childinfos);
|
||||
MALLOC_N(result->u.n.n_children, result->u.n.childkeys);
|
||||
//printf("n_children=%d\n", result->n_children);
|
||||
assert(result->u.n.n_children>=0 && result->u.n.n_children<=TREE_FANOUT);
|
||||
for (i=0; i<result->u.n.n_children; i++) {
|
||||
|
|
Loading…
Add table
Reference in a new issue