#At file:///Users/kgeorge/mysql/work/B12589928-trunk/ based on revid:luis.soares@stripped
3164 Georgi Kodinov 2011-06-07
Bug #12589928: MEMORY LEAK WHEN RUNNING SYS_VARS.SECURE_FILE_PRIV
Need to free the memory allocated by the option parsing code for empty
strings when resetting the pointer to NULL.
No test case needed, as the existing ones already cover this path.
modified:
sql/mysqld.cc
=== modified file 'sql/mysqld.cc'
--- a/sql/mysqld.cc 2011-06-06 10:29:45 +0000
+++ b/sql/mysqld.cc 2011-06-07 11:19:51 +0000
@@ -8039,6 +8039,7 @@ static int fix_paths(void)
{
if (*opt_secure_file_priv == 0)
{
+ my_free(opt_secure_file_priv);
opt_secure_file_priv= 0;
}
else
Attachment: [text/bzr-bundle] bzr/georgi.kodinov@oracle.com-20110607111951-n7jogldbdw5pdwnr.bundle
| Thread |
|---|
| • bzr commit into mysql-trunk branch (Georgi.Kodinov:3164) Bug#12589928 | Georgi Kodinov | 7 Jun |