diff options
author | Wesley Coakley <wcoakley@nvidia.com> | 2020-07-01 03:21:17 +0200 |
---|---|---|
committer | Wesley Coakley <wcoakley@nvidia.com> | 2020-07-01 19:10:53 +0200 |
commit | 20953065ff4b26cbf732aa6407001114e7db567a (patch) | |
tree | ee6b49b0fcebd0afe9cb2ac478d69714add24409 | |
parent | Merge pull request #6657 from donaldsharp/pbr_disable_on_4.9 (diff) | |
download | frr-20953065ff4b26cbf732aa6407001114e7db567a.tar.xz frr-20953065ff4b26cbf732aa6407001114e7db567a.zip |
pbrd, lib: remember to free alloc'd qobj on delete
Signed-off-by: Wesley Coakley <wcoakley@nvidia.com>
-rw-r--r-- | lib/nexthop_group.c | 1 | ||||
-rw-r--r-- | pbrd/pbr_map.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/lib/nexthop_group.c b/lib/nexthop_group.c index c62096a12..4f0c72af2 100644 --- a/lib/nexthop_group.c +++ b/lib/nexthop_group.c @@ -614,6 +614,7 @@ static void nhgc_delete(struct nexthop_group_cmd *nhgc) list_delete(&nhgc->nhg_list); + QOBJ_UNREG(nhgc); XFREE(MTYPE_TMP, nhgc); } diff --git a/pbrd/pbr_map.c b/pbrd/pbr_map.c index 7928b8e2e..edc3f1d8d 100644 --- a/pbrd/pbr_map.c +++ b/pbrd/pbr_map.c @@ -75,6 +75,7 @@ static void pbr_map_sequence_delete(struct pbr_map_sequence *pbrms) { XFREE(MTYPE_TMP, pbrms->internal_nhg_name); + QOBJ_UNREG(pbrms); XFREE(MTYPE_PBR_MAP_SEQNO, pbrms); } |