summaryrefslogtreecommitdiffstats
path: root/src/plugins/mactime
diff options
context:
space:
mode:
authorDave Barach <dave@barachs.net>2022-01-15 11:30:45 -0500
committerDave Barach <dave@barachs.net>2022-01-15 11:35:17 -0500
commit5233d4619cd0a4a154c35e88ccee92c24cacd377 (patch)
treec2bcc1a02dc9f9593e919a3935bebbc89159e22d /src/plugins/mactime
parent549838c81bd0d995f2b8569955afc33132582c77 (diff)
mactime: fix memory leak
Type: fix Signed-off-by: Dave Barach <dave@barachs.net> Change-Id: I1ef5cb250ac1e35b9a5003597eda3d54d2e5ca73
Diffstat (limited to 'src/plugins/mactime')
-rw-r--r--src/plugins/mactime/mactime.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/mactime/mactime.c b/src/plugins/mactime/mactime.c
index b8b1884119d..f878ffe5efe 100644
--- a/src/plugins/mactime/mactime.c
+++ b/src/plugins/mactime/mactime.c
@@ -637,7 +637,8 @@ show_mactime_command_fn (vlib_main_t * vm,
print:
vec_reset_length (macstring);
- macstring = format (0, "%U", format_mac_address, dp->mac_address);
+ macstring =
+ format (macstring, "%U", format_mac_address, dp->mac_address);
switch (current_status)
{
case 0: