vppinfra: memory leak be gone

Type: fix
Fixes: ab1a50cf7407e31097b550226c2b6954d6371bea / gerrit 29272

Signed-off-by: Dave Barach <dave@barachs.net>
Change-Id: Ic8146a66b54bb9ac6223cf984d4566554b73276d
This commit is contained in:
Dave Barach
2020-10-08 16:04:30 -04:00
parent 0e12131f8b
commit 1046b1a631

View File

@ -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;
}