g_free() should be used for g_malloc().
This commit is contained in:
parent
9978ebd853
commit
ec6f5b011a
@ -624,10 +624,7 @@ hexchat_event_attrs_create (hexchat_plugin *ph)
|
|||||||
{
|
{
|
||||||
hexchat_event_attrs *attrs;
|
hexchat_event_attrs *attrs;
|
||||||
|
|
||||||
attrs = malloc (sizeof (*attrs));
|
attrs = g_malloc (sizeof (*attrs));
|
||||||
|
|
||||||
if (attrs == NULL)
|
|
||||||
return NULL;
|
|
||||||
|
|
||||||
attrs->server_time_utc = (time_t) 0;
|
attrs->server_time_utc = (time_t) 0;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user