aboutsummaryrefslogtreecommitdiffstats
path: root/src/vlib
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2022-04-04 18:04:28 +0200
committerDamjan Marion <damarion@cisco.com>2022-04-04 18:06:15 +0200
commitc7ef4f391bcfb515af52cfcf9c71bb6b16006fc1 (patch)
tree2388ca997281d5f4d53816412610ad192f7b1643 /src/vlib
parent8b231fbe9ae6801c6ad3332207b2f8fba1693b86 (diff)
vlib: fix memory leak in load_one_plugin
Type: fix Fixes: 500ba9f Change-Id: I32872a084276d9b38ff07cdccccb746c0212777f Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/vlib')
-rw-r--r--src/vlib/unix/plugin.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vlib/unix/plugin.c b/src/vlib/unix/plugin.c
index 891e2cb642d..22035927e96 100644
--- a/src/vlib/unix/plugin.c
+++ b/src/vlib/unix/plugin.c
@@ -194,6 +194,8 @@ load_one_plugin (plugin_main_t * pm, plugin_info_t * pi, int from_early_init)
reread_reg = 0;
goto process_reg;
}
+ else
+ clib_error_free (error);
error = elf_get_section_by_name (&em, ".vlib_plugin_registration",
&section);