diff options
| author | Donatas Abraitis <donatas@opensourcerouting.org> | 2022-09-26 14:49:54 +0300 |
|---|---|---|
| committer | Donatas Abraitis <donatas@opensourcerouting.org> | 2022-09-26 14:56:20 +0300 |
| commit | 4c17bee53f04053348e7a65b9d41df1e0aa52fdd (patch) | |
| tree | eaf2111c93293fda420e22afcc781867aaf67fb3 /lib/routemap.c | |
| parent | 760863701e8c76f00982766e93222b8799ab9003 (diff) | |
lib: Fix `show route-map NAME json` command and memory leak
JSON object was generated, but not printed, because the function returned
immediatelly, even without freeing the memory.
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
Diffstat (limited to 'lib/routemap.c')
| -rw-r--r-- | lib/routemap.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/routemap.c b/lib/routemap.c index e6310465e3..3cc010c148 100644 --- a/lib/routemap.c +++ b/lib/routemap.c @@ -1059,7 +1059,6 @@ static int vty_show_route_map(struct vty *vty, const char *name, bool use_json) if (map) { vty_show_route_map_entry(vty, map, json_proto); - return CMD_SUCCESS; } else if (!use_json) { vty_out(vty, "%s: 'route-map %s' not found\n", frr_protonameinst, name); |
