summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDon Anderson <dda@mongodb.com>2016-11-01 22:55:44 -0400
committerMichael Cahill <michael.cahill@mongodb.com>2016-11-02 13:55:44 +1100
commit938020666a9a6b5d2ae6f224af05435948fde5b0 (patch)
treef80265936d79aed2ef109e3a8caa18c135372709
parentc726a283cb77742807412efff2b2e0ed2f7025a9 (diff)
downloadmongo-938020666a9a6b5d2ae6f224af05435948fde5b0.tar.gz
WT-2999 free memory related to cursor used with custom extractors during joins. (#3117)
-rw-r--r--src/cursor/cur_join.c2
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