From 8e94ac6b9d39df58ac115c0b0f0b158d85dd0d80 Mon Sep 17 00:00:00 2001 From: Caesar11 Date: Wed, 22 Apr 2015 22:13:14 -0400 Subject: [PATCH] fix memory leak in Database::only_pre_filter_after_join(). bugs was found by jialonghan@RUC. author: hanshuo --- Database/Database.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Database/Database.cpp b/Database/Database.cpp index 2142645..ad30399 100644 --- a/Database/Database.cpp +++ b/Database/Database.cpp @@ -2297,6 +2297,7 @@ void Database::only_pre_filter_after_join(BasicQuery* basic_query) break; } } + delete []pair_list; } if (exist_preid && !out_edge_pre_id.empty()) { @@ -2311,9 +2312,8 @@ void Database::only_pre_filter_after_join(BasicQuery* basic_query) break; } } - - } - delete []pair_list; + delete []pair_list; + } // result sequence is illegal when there exists any missing filter predicate id. if (!exist_preid)