/* -*-c-*-
*
- * $Id: exec.c,v 1.5 2002/01/13 14:49:03 mdw Exp $
+ * $Id: exec.c,v 1.6 2002/02/22 23:43:32 mdw Exp $
*
* Source and target for executable programs
*
/*----- Revision history --------------------------------------------------*
*
* $Log: exec.c,v $
+ * Revision 1.6 2002/02/22 23:43:32 mdw
+ * Call @xfree@ rather than @free@.
+ *
* Revision 1.5 2002/01/13 14:49:03 mdw
* Track @lbuf@ changes in mLib.
*
while (xe) {
xenv *xxe = xe;
xe = xe->next;
- free(xxe->name);
+ xfree(xxe->name);
if (xxe->value)
- free(xxe->value);
+ xfree(xxe->value);
DESTROY(xxe);
}
}
{
xa->ref--;
if (!xa->ref)
- free(xa);
+ xfree(xa);
xo->ref--;
if (!xo->ref) {
else
xept_list = xe->next;
- free(xe->desc);
+ xfree(xe->desc);
if (xe->f)
xe->f->ops->close(xe->f);
x_tidy(xe->xa, xe->xo);
static void xsource_destroy(source *s)
{
xsource *xs = (xsource *)s;
- free(xs->s.desc);
+ xfree(xs->s.desc);
exec_destroy(&xs->x);
DESTROY(xs);
}
static void xtarget_destroy(target *t)
{
xtarget *xt = (xtarget *)t;
- free(xt->t.desc);
+ xfree(xt->t.desc);
exec_destroy(&xt->x);
DESTROY(xt);
}
/* -*-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);
}
/* -*-c-*-
*
- * $Id: identify.c,v 1.6 2001/06/22 19:36:49 mdw Exp $
+ * $Id: identify.c,v 1.7 2002/02/22 23:43:32 mdw Exp $
*
* Identifies and logs the client of a connection
*
/*----- Revision history --------------------------------------------------*
*
* $Log: identify.c,v $
+ * Revision 1.7 2002/02/22 23:43:32 mdw
+ * Call @xfree@ rather than @free@.
+ *
* Revision 1.6 2001/06/22 19:36:49 mdw
* Enlarge the identity buffer.
*
/* --- Dispose of the block --- */
REFFD_DEC(i->q.r);
- free(i);
+ xfree(i);
}
/* --- @id_res@ --- *
/* -*-c-*-
*
- * $Id: un.c,v 1.4 2000/08/01 17:59:56 mdw Exp $
+ * $Id: un.c,v 1.5 2002/02/22 23:43:32 mdw Exp $
*
* Protocol specific definitions for Unix-domain sockets
*
/*----- Revision history --------------------------------------------------*
*
* $Log: un.c,v $
+ * Revision 1.5 2002/02/22 23:43:32 mdw
+ * Call @xfree@ rather than @free@.
+ *
* Revision 1.4 2000/08/01 17:59:56 mdw
* Switch over to using `size_t' for socket address lengths.
*
static void un_destroy(addr *a)
{
un_addr *ua = (un_addr *)a;
- free(ua);
+ xfree(ua);
}
/* --- @print@ --- */