summaryrefslogtreecommitdiffstats
path: root/lib/vector.c
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2017-01-26 21:57:24 +0100
committerDavid Lamparter <equinox@opensourcerouting.org>2017-01-31 15:28:19 +0100
commit66d29a54a1325217295d19243a5003b65f6ededd (patch)
treeac9743de6af2489ebdcc78909e44310d2bcfcd4c /lib/vector.c
parentlib: parser: fix allocation counting (diff)
downloadfrr-66d29a54a1325217295d19243a5003b65f6ededd.tar.xz
frr-66d29a54a1325217295d19243a5003b65f6ededd.zip
lib: clean up tab-completion memory counting
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'lib/vector.c')
-rw-r--r--lib/vector.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/lib/vector.c b/lib/vector.c
index 03ad3171d..0b1d5d504 100644
--- a/lib/vector.c
+++ b/lib/vector.c
@@ -25,7 +25,7 @@
#include "memory.h"
DEFINE_MTYPE_STATIC(LIB, VECTOR, "Vector")
-DEFINE_MTYPE( LIB, VECTOR_INDEX, "Vector index")
+DEFINE_MTYPE_STATIC(LIB, VECTOR_INDEX, "Vector index")
/* Initialize vector : allocate memory and return vector. */
vector
@@ -44,18 +44,6 @@ vector_init (unsigned int size)
}
void
-vector_only_wrapper_free (vector v)
-{
- XFREE (MTYPE_VECTOR, v);
-}
-
-void
-vector_only_index_free (void *index)
-{
- XFREE (MTYPE_VECTOR_INDEX, index);
-}
-
-void
vector_free (vector v)
{
XFREE (MTYPE_VECTOR_INDEX, v->index);