mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-05-28 17:25:42 +00:00
Merge pull request #12473 from donaldsharp/ensure_used
bgpd: Don't always allocate json memory in non-json path
This commit is contained in:
commit
d71f616734
@ -775,7 +775,8 @@ static int update_group_show_walkcb(struct update_group *updgrp, void *arg)
|
||||
: "");
|
||||
}
|
||||
}
|
||||
json_subgrps = json_object_new_array();
|
||||
if (ctx->uj)
|
||||
json_subgrps = json_object_new_array();
|
||||
UPDGRP_FOREACH_SUBGRP (updgrp, subgrp) {
|
||||
if (ctx->subgrp_id && (ctx->subgrp_id != subgrp->id))
|
||||
continue;
|
||||
|
Loading…
Reference in New Issue
Block a user