Commit 5e3de6a8 authored by unknown's avatar unknown

bug#26346

Fix to a memory leak found by a complier warning.
parent 523c888d
...@@ -1528,11 +1528,11 @@ static uint dump_events_for_db(char *db) ...@@ -1528,11 +1528,11 @@ static uint dump_events_for_db(char *db)
fprintf(sql_file, "/*!50106 %s */ %s\n", row[3], delimiter); fprintf(sql_file, "/*!50106 %s */ %s\n", row[3], delimiter);
} }
} /* end of event printing */ } /* end of event printing */
mysql_free_result(event_res);
} /* end of list of events */ } /* end of list of events */
fprintf(sql_file, "DELIMITER ;\n"); fprintf(sql_file, "DELIMITER ;\n");
fprintf(sql_file, "/*!50106 SET TIME_ZONE= @save_time_zone */ ;\n"); fprintf(sql_file, "/*!50106 SET TIME_ZONE= @save_time_zone */ ;\n");
mysql_free_result(event_res);
} }
mysql_free_result(event_list_res); mysql_free_result(event_list_res);
......
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