From ec6f5b011a440146401e6584d3f5881e2f554054 Mon Sep 17 00:00:00 2001 From: Diogo Sousa Date: Sat, 13 Jul 2013 05:33:16 +0100 Subject: [PATCH] g_free() should be used for g_malloc(). --- src/common/plugin.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/common/plugin.c b/src/common/plugin.c index 6edc9926..7d118b8b 100644 --- a/src/common/plugin.c +++ b/src/common/plugin.c @@ -624,10 +624,7 @@ hexchat_event_attrs_create (hexchat_plugin *ph) { hexchat_event_attrs *attrs; - attrs = malloc (sizeof (*attrs)); - - if (attrs == NULL) - return NULL; + attrs = g_malloc (sizeof (*attrs)); attrs->server_time_utc = (time_t) 0;