mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-14 12:25:02 +00:00
vtysh: fix memory leak
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
This commit is contained in:
parent
8e418e8e3d
commit
40ab41115d
@ -485,8 +485,10 @@ void vtysh_config_dump(void)
|
||||
* are not under the VRF node.
|
||||
*/
|
||||
if (config->index == INTERFACE_NODE
|
||||
&& list_isempty(config->line))
|
||||
&& list_isempty(config->line)) {
|
||||
config_del(config);
|
||||
continue;
|
||||
}
|
||||
|
||||
vty_out(vty, "%s\n", config->name);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user