From 0241684ea77e8aa20ad2cb3903589559f4a7b009 Mon Sep 17 00:00:00 2001 From: paul Date: Wed, 26 Oct 2005 05:05:16 +0000 Subject: 2005-10-26 Paul Jakma * (general) Cleanup a some calls to XFREE,strdup, etc. to use the memory.h macros. * memtypes.c: Add MTYPE_IF_RMAP_NAME, MTYPE_PQUEUE, MTYPE_PQUEUE_DATA and MTYPE_HOST. * memtypes.h: update auto-built file. * if_rmap.c: Use MTYPE_IF_RMAP_NAME. * pqueue.c: Use the two MTYPE_PQUEUE mtypes for allocations. --- lib/if.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/if.c') diff --git a/lib/if.c b/lib/if.c index a57da352..5e440c33 100644 --- a/lib/if.c +++ b/lib/if.c @@ -495,7 +495,7 @@ DEFUN (no_interface_desc, ifp = vty->index; if (ifp->desc) - XFREE (0, ifp->desc); + XFREE (MTYPE_TMP, ifp->desc); ifp->desc = NULL; return CMD_SUCCESS; -- cgit v1.2.3