fix memory leak in Database::only_pre_filter_after_join().

bugs was found by jialonghan@RUC.

author: hanshuo
This commit is contained in:
Caesar11 2015-04-22 22:13:14 -04:00
parent 57a89e57e4
commit 8e94ac6b9d
1 changed files with 3 additions and 3 deletions

View File

@ -2297,6 +2297,7 @@ void Database::only_pre_filter_after_join(BasicQuery* basic_query)
break; break;
} }
} }
delete []pair_list;
} }
if (exist_preid && !out_edge_pre_id.empty()) if (exist_preid && !out_edge_pre_id.empty())
{ {
@ -2311,9 +2312,8 @@ void Database::only_pre_filter_after_join(BasicQuery* basic_query)
break; break;
} }
} }
delete []pair_list;
} }
delete []pair_list;
// result sequence is illegal when there exists any missing filter predicate id. // result sequence is illegal when there exists any missing filter predicate id.
if (!exist_preid) if (!exist_preid)