vlib: avoid confusion when parsing plugins section 49/42649/6
authorNicolas PLANEL <[email protected]>
Thu, 3 Apr 2025 08:54:15 +0000 (10:54 +0200)
committerDamjan Marion <[email protected]>
Sun, 13 Apr 2025 19:05:45 +0000 (19:05 +0000)
commit9efdde87fac7f9f0ee73ec5d6764a3e9b9efeb43
tree4e69171febd71612cb1e8b93ff0ebea4444e224c
parentde51497fe48f2ea57e643f672ed44c9035035a23
vlib: avoid confusion when parsing plugins section

config_one_plugin steal the vector allocated by unformat()
and memory leak in the error path of config_one_plugin
call vec_dup() and vec_free() when it's needed

Type: fix
Change-Id: I2407e0981e9628c40908cdd26683b98ae27c2159
Signed-off-by: Nicolas PLANEL <[email protected]>
src/vlib/unix/plugin.c