diff options
| author | anlan_cs <vic.lan@pica8.com> | 2022-04-20 06:57:53 -0400 |
|---|---|---|
| committer | anlan_cs <vic.lan@pica8.com> | 2022-05-03 00:41:48 +0800 |
| commit | ac390ef8ac7e31f2ddbcb8bdaf1f2b507ec7522e (patch) | |
| tree | 59e49fc11188ff5ef55f90f1b8ecf1fa88d35eba /lib/command.c | |
| parent | 46a3bfa69554311b037be0bd7463ce4a4d579191 (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
