aboutsummaryrefslogtreecommitdiff
path: root/src/espik_config.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/espik_config.c')
-rw-r--r--src/espik_config.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/espik_config.c b/src/espik_config.c
index 0cbc0d3..6587b98 100644
--- a/src/espik_config.c
+++ b/src/espik_config.c
@@ -47,8 +47,8 @@ t_userinfo* espik_user_sysinfo_get ()
else
u_info->realname = strdup (pw->pw_gecos);
- /* FIXME: segv */
- free (pw);
+ espik_free (u_info);
+ espik_free (pw);
espik_leave();
return (u_info);
@@ -73,7 +73,10 @@ void espik_config_default_set ()
ecore_config_string_default ("/espik/version", ESPIK_VERSION);
- free (user_sysinfo);
+ espik_free (user_sysinfo->nickname);
+ espik_free (user_sysinfo->username);
+ espik_free (user_sysinfo->realname);
+ espik_free (user_sysinfo);
espik_leave();
}
@@ -106,13 +109,10 @@ void espik_config_init ()
void espik_config_shutdown (t_info s_info)
{
- free (s_info.server->host);
+ espik_free (s_info.server->host);
// free (s_info->server->port);
- free (s_info.server);
- free (s_info.client->nickname);
- free (s_info.client->username);
- free (s_info.client->realname);
- free (s_info.client);
+ espik_free (s_info.server);
+ espik_free (s_info.client);
// free (s_info);
ecore_config_save();