goto free_name;
}
- path = get_config_file_path();
+ path = config_get_default_path();
if (path == NULL) {
ret = CMD_FATAL;
goto free_name;
MSG("Session %s destroyed", session_name);
}
- free(path);
ret = CMD_SUCCESS;
free_name:
- free(session_name);
+ if (opt_session_name == NULL) {
+ free(session_name);
+ }
error:
return ret;
}