Subject: | [PATCH] memory leak on select if mysql_server_prepare is enabled |
Hello.
I found memory leak on select if mysql_server_prepare is enabled.
See also http://bugs.mysql.com/bug.php?id=41815
Nick.
Subject: | dbdimp.c.patch |
--- dbdimp.c_orig 2012-04-10 10:02:09.000000000 +0300
+++ dbdimp.c 2012-04-10 10:12:19.000000000 +0300
@@ -3490,7 +3490,8 @@
/** Store the result in the current statement handle */
DBIc_NUM_FIELDS(imp_sth)= mysql_num_fields(imp_sth->result);
DBIc_ACTIVE_on(imp_sth);
- imp_sth->done_desc= 0;
+ if (!imp_sth->use_server_side_prepare)
+ imp_sth->done_desc= 0;
imp_sth->fetch_done= 0;
}
}