summaryrefslogtreecommitdiff
path: root/lib/command.c
diff options
context:
space:
mode:
authoranlan_cs <vic.lan@pica8.com>2022-04-20 06:57:53 -0400
committeranlan_cs <vic.lan@pica8.com>2022-05-03 00:41:48 +0800
commitac390ef8ac7e31f2ddbcb8bdaf1f2b507ec7522e (patch)
tree59e49fc11188ff5ef55f90f1b8ecf1fa88d35eba /lib/command.c
parent46a3bfa69554311b037be0bd7463ce4a4d579191 (diff)
bgpd: fix memory leak for evpn
If `hash_get()` returns NULL, the list created with `list_new()` is not be freed. Since `hash_get()` should not fail, we don't need `list_delete()` and other boring `XFREE()`s for its failure case. Just ignore returning value of `hash_get()` in these cases. Signed-off-by: anlan_cs <vic.lan@pica8.com>
Diffstat (limited to 'lib/command.c')
0 files changed, 0 insertions, 0 deletions