summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorDiogo Sousa <diogogsousa@gmail.com>2013-07-13 05:33:16 +0100
committerDiogo Sousa <diogogsousa@gmail.com>2013-07-13 05:33:16 +0100
commitec6f5b011a440146401e6584d3f5881e2f554054 (patch)
treee30a3e51b979f09f570a4203dd0fed7cdf0f6126
parent9978ebd8539f5150478b9227404bf2a810d825b9 (diff)
g_free() should be used for g_malloc().
-rw-r--r--src/common/plugin.c5
1 files changed, 1 insertions, 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;