diff options
author | Don Anderson <dda@mongodb.com> | 2016-11-01 22:55:44 -0400 |
---|---|---|
committer | Michael Cahill <michael.cahill@mongodb.com> | 2016-11-02 13:55:44 +1100 |
commit | 938020666a9a6b5d2ae6f224af05435948fde5b0 (patch) | |
tree | f80265936d79aed2ef109e3a8caa18c135372709 | |
parent | c726a283cb77742807412efff2b2e0ed2f7025a9 (diff) | |
download | mongo-938020666a9a6b5d2ae6f224af05435948fde5b0.tar.gz |
WT-2999 free memory related to cursor used with custom extractors during joins. (#3117)
-rw-r--r-- | src/cursor/cur_join.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cursor/cur_join.c b/src/cursor/cur_join.c index 8936c6e3563..806436ebf38 100644 --- a/src/cursor/cur_join.c +++ b/src/cursor/cur_join.c @@ -673,6 +673,8 @@ __curjoin_entry_member(WT_SESSION_IMPL *session, WT_CURSOR_JOIN_ENTRY *entry, extract_cursor.entry = entry; WT_ERR(idx->extractor->extract(idx->extractor, &session->iface, key, &v, &extract_cursor.iface)); + __wt_buf_free(session, &extract_cursor.iface.key); + __wt_buf_free(session, &extract_cursor.iface.value); if (!extract_cursor.ismember) WT_ERR(WT_NOTFOUND); } else |