summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorpaul <paul>2005-11-03 11:04:07 +0000
committerpaul <paul>2005-11-03 11:04:07 +0000
commit9c4f1c6f10d4770933c0558528a0e59557b96230 (patch)
tree3e5d6c73e9e78b0aa6ed2cc8ffe276f2b19f3548 /lib
parent484315fd274b3782f72abc95c9796c604e53bcc9 (diff)
2005-11-03 Paul Jakma <paul.jakma@sun.com>
* if.c: (connected_free) use MTYPE for connected label. memtypes.c: Add MTYPE_CONNECTED_LABEL
Diffstat (limited to 'lib')
-rw-r--r--lib/ChangeLog2
-rw-r--r--lib/if.c2
-rw-r--r--lib/memtypes.c3
3 files changed, 5 insertions, 2 deletions
diff --git a/lib/ChangeLog b/lib/ChangeLog
index 3ad9458c..c420fa71 100644
--- a/lib/ChangeLog
+++ b/lib/ChangeLog
@@ -18,6 +18,8 @@
quicker.
* md5.h: POSIX types. Get rid of the odd __P() non-ANSI capable
compiler compatibility hack.
+ * if.c: (connected_free) use MTYPE for connected label.
+ memtypes.c: Add MTYPE_CONNECTED_LABEL
2005-10-26 Paul Jakma <paul.jakma@sun.com>
diff --git a/lib/if.c b/lib/if.c
index 5e440c33..df761265 100644
--- a/lib/if.c
+++ b/lib/if.c
@@ -605,7 +605,7 @@ connected_free (struct connected *connected)
prefix_free (connected->destination);
if (connected->label)
- free (connected->label);
+ XFREE (MTYPE_CONNECTED_LABEL, connected->label);
XFREE (MTYPE_CONNECTED, connected);
}
diff --git a/lib/memtypes.c b/lib/memtypes.c
index 4aac2f78..d9a1a623 100644
--- a/lib/memtypes.c
+++ b/lib/memtypes.c
@@ -6,7 +6,7 @@
* The script is sensitive to the format (though not whitespace), see
* the top of memtypes.awk for more details.
*
- * $Id: memtypes.c,v 1.9 2005/10/26 05:05:16 paul Exp $
+ * $Id: memtypes.c,v 1.10 2005/11/03 11:04:07 paul Exp $
*/
#include "zebra.h"
@@ -29,6 +29,7 @@ struct memory_list memory_list_lib[] =
{ MTYPE_VTY_HIST, "VTY history" },
{ MTYPE_IF, "Interface" },
{ MTYPE_CONNECTED, "Connected" },
+ { MTYPE_CONNECTED_LABEL, "Connected interface label" },
{ MTYPE_BUFFER, "Buffer" },
{ MTYPE_BUFFER_DATA, "Buffer data" },
{ MTYPE_STREAM, "Stream" },