/* Resets the kevents object and frees all the associated memory.  */
void kevents_free(kevents *kv)
/* Resets the kevents object and frees all the associated memory.  */
void kevents_free(kevents *kv)
{
  g_assert (kv != NULL);
  g_free (kv->memory);
  memset (kv, 0, sizeof (kevents));
}