diff options
| author | Keelan10 <keelan.cannoo@icloud.com> | 2023-04-03 11:36:33 +0400 |
|---|---|---|
| committer | Keelan10 <keelan.cannoo@icloud.com> | 2023-04-03 17:51:48 +0400 |
| commit | 5aa36ff77b83d50cecf2b9c9854fc439c77d464f (patch) | |
| tree | bf22467077c9878b285dd73cab6cb7b0398602fd /sharpd | |
| parent | bdf62ec61b343adc007a93a66081d26d1483950a (diff) | |
sharpd: Fix sharpd memory leak
Free path
Signed-off-by: Keelan Cannoo <keelan.cannoo@icloud.com>
Diffstat (limited to 'sharpd')
| -rw-r--r-- | sharpd/sharp_vty.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sharpd/sharp_vty.c b/sharpd/sharp_vty.c index 77b562d6a6..1fdac2c286 100644 --- a/sharpd/sharp_vty.c +++ b/sharpd/sharp_vty.c @@ -1245,6 +1245,7 @@ DEFPY (show_sharp_cspf, } if (path->status != SUCCESS) { vty_out(vty, "Path computation failed: %d\n", path->status); + cpath_del(path); return CMD_SUCCESS; } @@ -1260,7 +1261,7 @@ DEFPY (show_sharp_cspf, &edge->attributes->standard.remote6); } vty_out(vty, "\n"); - + cpath_del(path); return CMD_SUCCESS; } |
