diff options
| author | Donatas Abraitis <donatas@opensourcerouting.org> | 2022-05-04 21:19:51 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-05-04 21:19:51 +0300 |
| commit | 50f1f2e724f8614ada1a1a02dd28f1ff3af06e08 (patch) | |
| tree | 8923363c95ef0fb10fd63fd549f580a834b3cca4 /lib/command.c | |
| parent | d98de984a908579ac1cd0c1a67f32e8381757c55 (diff) | |
| parent | 8e3aae66cec563cee0add26482f279c4aae67cb1 (diff) | |
Merge pull request #11059 from anlancs/fix/bgpd-evnp-wrong-check-hashget
bgpd: fix memory leak for evpn
Diffstat (limited to 'lib/command.c')
| -rw-r--r-- | lib/command.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/command.c b/lib/command.c index a429510059..c4db045633 100644 --- a/lib/command.c +++ b/lib/command.c @@ -315,7 +315,7 @@ void _install_element(enum node_type ntype, const struct cmd_element *cmd) return; } - assert(hash_get(cnode->cmd_hash, (void *)cmd, hash_alloc_intern)); + (void)hash_get(cnode->cmd_hash, (void *)cmd, hash_alloc_intern); if (cnode->graph_built || !defer_cli_tree) { struct graph *graph = graph_new(); |
