Commit af71a9cb authored by Will DeVries's avatar Will DeVries Committed by Sergei Petrunia

Check for NULL pointer before calling remove_current_table_from_rpl_table_list().

parent 3b30a12c
...@@ -212,7 +212,8 @@ ha_clustrixdb_select_handler::~ha_clustrixdb_select_handler() ...@@ -212,7 +212,8 @@ ha_clustrixdb_select_handler::~ha_clustrixdb_select_handler()
if (table__) if (table__)
my_bitmap_free(&scan_fields); my_bitmap_free(&scan_fields);
remove_current_table_from_rpl_table_list(rgi); if (rgi)
remove_current_table_from_rpl_table_list(rgi);
} }
/*@brief Initiate the query for select_handler */ /*@brief Initiate the query for select_handler */
...@@ -357,7 +358,8 @@ ha_clustrixdb_derived_handler::~ha_clustrixdb_derived_handler() ...@@ -357,7 +358,8 @@ ha_clustrixdb_derived_handler::~ha_clustrixdb_derived_handler()
if (table__) if (table__)
my_bitmap_free(&scan_fields); my_bitmap_free(&scan_fields);
remove_current_table_from_rpl_table_list(rgi); if (rgi)
remove_current_table_from_rpl_table_list(rgi);
} }
/*@brief Initiate the query for derived_handler */ /*@brief Initiate the query for derived_handler */
......
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