]> git.puffer.fish Git - matthieu/frr.git/commitdiff
2005-11-03 Paul Jakma <paul.jakma@sun.com>
authorpaul <paul>
Thu, 3 Nov 2005 11:04:07 +0000 (11:04 +0000)
committerpaul <paul>
Thu, 3 Nov 2005 11:04:07 +0000 (11:04 +0000)
* if.c: (connected_free) use MTYPE for connected label.
  memtypes.c: Add MTYPE_CONNECTED_LABEL

lib/ChangeLog
lib/if.c
lib/memtypes.c

index 3ad9458c90280cf55db87926f9b328bf57497bec..c420fa7137e4928b3964d9f86d4c9b16a3176f66 100644 (file)
@@ -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>
 
index 5e440c3348b11f516e8062887ae3013259b5719d..df7612659b1675b8dc8a3a3dedd3d5a04f908a03 100644 (file)
--- 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);
 }
index 4aac2f781681b27e4e0eb25af3dac90d053307d6..d9a1a623f0841f8c6606a0bdd29a5b9a208296ca 100644 (file)
@@ -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"                        },