summaryrefslogtreecommitdiffstats
path: root/src/vppinfra/elog.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/vppinfra/elog.c')
-rw-r--r--src/vppinfra/elog.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vppinfra/elog.c b/src/vppinfra/elog.c
index 089c2509f71..b3b2fa9a25d 100644
--- a/src/vppinfra/elog.c
+++ b/src/vppinfra/elog.c
@@ -614,7 +614,7 @@ elog_string (elog_main_t * em, char *fmt, ...)
elog_event_t *
elog_get_events (elog_main_t * em)
{
- vec_reset_length (em->events);
+ vec_free (em->events);
em->events = elog_peek_events (em);
return em->events;
}