Bug #12589928: MEMORY LEAK WHEN RUNNING SYS_VARS.SECURE_FILE_PRIV
This is the 5.1 version of the fix. 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.
This commit is contained in:
parent
7759826ea9
commit
8e14d52610
@ -9063,6 +9063,7 @@ static int fix_paths(void)
|
||||
{
|
||||
if (*opt_secure_file_priv == 0)
|
||||
{
|
||||
my_free(opt_secure_file_priv, MYF(0));
|
||||
opt_secure_file_priv= 0;
|
||||
}
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user