diff options
author | David Lamparter <equinox@opensourcerouting.org> | 2017-01-26 21:57:24 +0100 |
---|---|---|
committer | David Lamparter <equinox@opensourcerouting.org> | 2017-01-31 15:28:19 +0100 |
commit | 66d29a54a1325217295d19243a5003b65f6ededd (patch) | |
tree | ac9743de6af2489ebdcc78909e44310d2bcfcd4c /lib/vector.c | |
parent | lib: parser: fix allocation counting (diff) | |
download | frr-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.c | 14 |
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); |