summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDave Barach <dave@barachs.net>2020-10-08 16:04:30 -0400
committerDave Barach <dave@barachs.net>2020-10-08 16:05:01 -0400
commit1046b1a631fd4153bca09b8924e34206ab3cf0ee (patch)
treee813171cce05e40bd825faccb6c930a277ec7e59 /src
parent0e12131f8bf519fb301d4a2e34c3e0a4944da796 (diff)
vppinfra: memory leak be gone
Type: fix Fixes: ab1a50cf7407e31097b550226c2b6954d6371bea / gerrit 29272 Signed-off-by: Dave Barach <dave@barachs.net> Change-Id: Ic8146a66b54bb9ac6223cf984d4566554b73276d
Diffstat (limited to 'src')
-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;
}