summaryrefslogtreecommitdiffstats
path: root/ospf6d
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2022-12-09 14:32:12 +0100
committerDonald Sharp <sharpd@nvidia.com>2022-12-09 14:38:50 +0100
commit21c6569d6f4dca71b4ddf7e6499e296efaf819c0 (patch)
treed6ceeb2593483e60b9c3540cb4045a5d9facf52b /ospf6d
parentzebra: Actually free all memory associated ctx->u.iptable.interface_name_list (diff)
downloadfrr-21c6569d6f4dca71b4ddf7e6499e296efaf819c0.tar.xz
frr-21c6569d6f4dca71b4ddf7e6499e296efaf819c0.zip
ospf6d: Don't allocate json memory in non-json path
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'ospf6d')
-rw-r--r--ospf6d/ospf6_interface.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ospf6d/ospf6_interface.c b/ospf6d/ospf6_interface.c
index ed228f46a..1c045cba0 100644
--- a/ospf6d/ospf6_interface.c
+++ b/ospf6d/ospf6_interface.c
@@ -1242,7 +1242,8 @@ static int ospf6_interface_show(struct vty *vty, struct interface *ifp,
}
}
- json_auth = json_object_new_object();
+ if (use_json)
+ json_auth = json_object_new_object();
if (oi->at_data.flags != 0) {
if (use_json) {
if (CHECK_FLAG(oi->at_data.flags,