commit | c7ef4f391bcfb515af52cfcf9c71bb6b16006fc1 | [log] [tgz] |
---|---|---|
author | Damjan Marion <damarion@cisco.com> | Mon Apr 04 18:04:28 2022 +0200 |
committer | Damjan Marion <damarion@cisco.com> | Mon Apr 04 18:06:15 2022 +0200 |
tree | 2388ca997281d5f4d53816412610ad192f7b1643 | |
parent | 8b231fbe9ae6801c6ad3332207b2f8fba1693b86 [diff] |
vlib: fix memory leak in load_one_plugin Type: fix Fixes: 500ba9f Change-Id: I32872a084276d9b38ff07cdccccb746c0212777f Signed-off-by: Damjan Marion <damarion@cisco.com>
diff --git a/src/vlib/unix/plugin.c b/src/vlib/unix/plugin.c index 891e2cb..2203592 100644 --- a/src/vlib/unix/plugin.c +++ b/src/vlib/unix/plugin.c
@@ -194,6 +194,8 @@ reread_reg = 0; goto process_reg; } + else + clib_error_free (error); error = elf_get_section_by_name (&em, ".vlib_plugin_registration", §ion);