confile: cleanup set_config_log_syslog()

parent 4486ea13
...@@ -3462,17 +3462,15 @@ static int set_config_log_syslog(const char *key, const char *value, ...@@ -3462,17 +3462,15 @@ static int set_config_log_syslog(const char *key, const char *value,
{ {
int facility; int facility;
if (lxc_conf->syslog) { if (lxc_conf->syslog)
free(lxc_conf->syslog); free_disarm(lxc_conf->syslog);
lxc_conf->syslog = NULL;
}
if (lxc_config_value_empty(value)) if (lxc_config_value_empty(value))
return 0; return 0;
facility = lxc_syslog_priority_to_int(value); facility = lxc_syslog_priority_to_int(value);
if (facility == -EINVAL) if (facility == -EINVAL)
return -1; return ret_errno(EINVAL);
lxc_log_syslog(facility); lxc_log_syslog(facility);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment