diff options
author | Diogo Sousa <diogogsousa@gmail.com> | 2013-07-13 05:33:16 +0100 |
---|---|---|
committer | Diogo Sousa <diogogsousa@gmail.com> | 2013-07-13 05:33:16 +0100 |
commit | ec6f5b011a440146401e6584d3f5881e2f554054 (patch) | |
tree | e30a3e51b979f09f570a4203dd0fed7cdf0f6126 /src/common/plugin.c | |
parent | 9978ebd8539f5150478b9227404bf2a810d825b9 (diff) |
g_free() should be used for g_malloc().
Diffstat (limited to 'src/common/plugin.c')
-rw-r--r-- | src/common/plugin.c | 5 |
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; |