summaryrefslogtreecommitdiff
path: root/lib/command.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2023-05-05 11:05:12 -0400
committerDonatas Abraitis <donatas@opensourcerouting.org>2023-05-09 15:55:27 +0300
commit3a9376d3f8b48e10f3ba4ffe7de01cf6840ab333 (patch)
treeb4a6e54b02e6dd9c3777ce955526f00e84a52383 /lib/command.c
parent7f0d80461139311d00b837f1f6882fc8e458a6a6 (diff)
zebra: Reduce creation and fix memory leak of frrscripting pointers
There are two issues being addressed: a) The ZEBRA_ON_RIB_PROCESS_HOOK_CALL script point was creating a fs pointer per dplane ctx in rib_process_dplane_results(). b) The fs pointer was not being deleted and directly leaked. For (a) Move the creation of the fs to outside the do while loop. For (b) At function end ensure that the pointer is actually deleted. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'lib/command.c')
0 files changed, 0 insertions, 0 deletions