summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authordkatz/Damien@damiendev. <>2007-03-23 19:30:25 -0400
committerdkatz/Damien@damiendev. <>2007-03-23 19:30:25 -0400
commit6a7ef1849a41624fb4d1c4b82b6a040adba5dd01 (patch)
tree27c23c2dcb65adbe139deacef74e01cd36cc2b52 /client
parent8cb8bf0ed062992fa04cd7deb2a1a4c4baaee220 (diff)
downloadmariadb-git-6a7ef1849a41624fb4d1c4b82b6a040adba5dd01.tar.gz
bug#26346
Fix to a memory leak found by a complier warning.
Diffstat (limited to 'client')
-rw-r--r--client/mysqldump.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/client/mysqldump.c b/client/mysqldump.c
index c1bb81341ce..f4d56ecc0b0 100644
--- a/client/mysqldump.c
+++ b/client/mysqldump.c
@@ -1528,11 +1528,11 @@ static uint dump_events_for_db(char *db)
fprintf(sql_file, "/*!50106 %s */ %s\n", row[3], delimiter);
}
} /* end of event printing */
+ mysql_free_result(event_res);
+
} /* end of list of events */
fprintf(sql_file, "DELIMITER ;\n");
fprintf(sql_file, "/*!50106 SET TIME_ZONE= @save_time_zone */ ;\n");
-
- mysql_free_result(event_res);
}
mysql_free_result(event_list_res);