/* Frees a subscription object and all its associated memory.  */
void _kh_sub_free(kqueue_sub *sub)
/* Frees a subscription object and all its associated memory.  */
void _kh_sub_free(kqueue_sub *sub)
{
  if (sub->deps)
    {
      dl_free (sub->deps);
      sub->deps = NULL;
    }
  g_free (sub->filename);
  g_slice_free (kqueue_sub, sub);
}