Bug # 397
http://bugs.skysql.com/show_bug.cgi?id=397 Avoid calling free with NULL pointer.
This commit is contained in:
@ -486,6 +486,7 @@ static bool resolve_maxscale_homedir(
|
|||||||
log_context = strdup("MAXSCALE_HOME");
|
log_context = strdup("MAXSCALE_HOME");
|
||||||
goto check_home_dir;
|
goto check_home_dir;
|
||||||
}
|
}
|
||||||
|
free(tmp);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -496,7 +497,6 @@ static bool resolve_maxscale_homedir(
|
|||||||
"Warning : MAXSCALE_HOME environment "
|
"Warning : MAXSCALE_HOME environment "
|
||||||
"variable is not set.")));
|
"variable is not set.")));
|
||||||
}
|
}
|
||||||
free(tmp);
|
|
||||||
/*<
|
/*<
|
||||||
* 2. if home dir wasn't specified in MAXSCALE_HOME,
|
* 2. if home dir wasn't specified in MAXSCALE_HOME,
|
||||||
* try access /etc/MaxScale/
|
* try access /etc/MaxScale/
|
||||||
|
Reference in New Issue
Block a user