/* -*-c-*-
*
- * $Id: file.c,v 1.4 2001/02/03 20:30:03 mdw Exp $
+ * $Id: file.c,v 1.5 2002/02/22 23:43:32 mdw Exp $
*
* File source and target
*
/*----- Revision history --------------------------------------------------*
*
* $Log: file.c,v $
+ * Revision 1.5 2002/02/22 23:43:32 mdw
+ * Call @xfree@ rather than @free@.
+ *
* Revision 1.4 2001/02/03 20:30:03 mdw
* Support re-reading config files on SIGHUP.
*
static void file_destroy(fdata *f)
{
if (f->in.type == FTYPE_NAME)
- free(f->in.u.name);
+ xfree(f->in.u.name);
if (f->out.type == FTYPE_NAME)
- free(f->out.u.name);
+ xfree(f->out.u.name);
}
/*----- File source description -------------------------------------------*/
static void fsource_destroy(source *s)
{
fsource *fs = (fsource *)s;
- free(fs->s.desc);
+ xfree(fs->s.desc);
file_destroy(&fs->f);
DESTROY(fs);
}
{
ftarget *ft = (ftarget *)t;
file_destroy(&ft->f);
- free(ft->t.desc);
+ xfree(ft->t.desc);
DESTROY(ft);
}