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:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user