diff options
-rw-r--r-- | src/espik_common_handler.c | 1 | ||||
-rw-r--r-- | src/espik_config.c | 4 | ||||
-rw-r--r-- | src/espik_net.c | 1 |
3 files changed, 0 insertions, 6 deletions
diff --git a/src/espik_common_handler.c b/src/espik_common_handler.c index ae3e119..98ed028 100644 --- a/src/espik_common_handler.c +++ b/src/espik_common_handler.c @@ -28,7 +28,6 @@ int kb_get (void *data __UNUSED__, Ecore_Fd_Handler * fd_handler) int count; kb = malloc (sizeof (char) * 200); - chk_malloc (kb); do { diff --git a/src/espik_config.c b/src/espik_config.c index e0a3b87..c207cd9 100644 --- a/src/espik_config.c +++ b/src/espik_config.c @@ -15,7 +15,6 @@ t_servinfo* espik_server_config_set (char *server, unsigned short port) t_servinfo *s_info; s_info = malloc (sizeof (t_servinfo)); - chk_malloc (s_info); s_info->host = server; s_info->port = port; @@ -31,7 +30,6 @@ t_userinfo *espik_user_sysinfo_get () pw = getpwuid (getuid ()); u_info = malloc (sizeof (t_userinfo)); - chk_malloc (u_info); u_info->nickname = pw->pw_name; u_info->username = pw->pw_name; @@ -75,9 +73,7 @@ void espik_config_init () void espik_config_get (t_info * s_info) { s_info->server = malloc (sizeof (t_servinfo)); - chk_malloc (s_info->server); s_info->client = malloc (sizeof (t_userinfo)); - chk_malloc (s_info->client); espik_config_default_set (); diff --git a/src/espik_net.c b/src/espik_net.c index 16498de..fe8bdd3 100644 --- a/src/espik_net.c +++ b/src/espik_net.c @@ -48,7 +48,6 @@ void espik_raw_send (char *msg) len = strlen (msg) + 3; out = malloc (sizeof (char) * len); - chk_malloc (out); snprintf (out, len, "%s\r\n", msg); |