Commit 8ec98643 authored by Leif Walsh's avatar Leif Walsh Committed by Yoni Fogel

[t:3856] fixes #3856

git-svn-id: file:///svn/toku/tokudb@33826 c7de825b-a66e-492c-adef-691d508d4ae1
parent 1f0c652c
...@@ -184,11 +184,13 @@ static inline void fill_bfe_for_min_read(struct brtnode_fetch_extra *bfe, struct ...@@ -184,11 +184,13 @@ static inline void fill_bfe_for_min_read(struct brtnode_fetch_extra *bfe, struct
static inline void destroy_bfe_for_prefetch(struct brtnode_fetch_extra *bfe) { static inline void destroy_bfe_for_prefetch(struct brtnode_fetch_extra *bfe) {
assert(bfe->type == brtnode_fetch_prefetch); assert(bfe->type == brtnode_fetch_prefetch);
if (bfe->range_lock_left_key != NULL) { if (bfe->range_lock_left_key != NULL) {
toku_free(bfe->range_lock_left_key->data);
toku_destroy_dbt(bfe->range_lock_left_key); toku_destroy_dbt(bfe->range_lock_left_key);
toku_free(bfe->range_lock_left_key); toku_free(bfe->range_lock_left_key);
bfe->range_lock_left_key = NULL; bfe->range_lock_left_key = NULL;
} }
if (bfe->range_lock_right_key != NULL) { if (bfe->range_lock_right_key != NULL) {
toku_free(bfe->range_lock_right_key->data);
toku_destroy_dbt(bfe->range_lock_right_key); toku_destroy_dbt(bfe->range_lock_right_key);
toku_free(bfe->range_lock_right_key); toku_free(bfe->range_lock_right_key);
bfe->range_lock_right_key = NULL; bfe->range_lock_right_key = NULL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment