2005-10-26 Paul Jakma <paul.jakma@sun.com>
* (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.
diff --git a/lib/if.c b/lib/if.c
index a57da35..5e440c3 100644
--- a/lib/if.c
+++ b/lib/if.c
@@ -495,7 +495,7 @@
ifp = vty->index;
if (ifp->desc)
- XFREE (0, ifp->desc);
+ XFREE (MTYPE_TMP, ifp->desc);
ifp->desc = NULL;
return CMD_SUCCESS;