This also frees the counter group pointed to by peer->ctrg when the peer gets freed.
Sponsored-by: On-Waves ehf --- openbsc/src/gprs/gb_proxy.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/openbsc/src/gprs/gb_proxy.c b/openbsc/src/gprs/gb_proxy.c index d075578..d5872a9 100644 --- a/openbsc/src/gprs/gb_proxy.c +++ b/openbsc/src/gprs/gb_proxy.c @@ -206,6 +206,7 @@ static struct gbprox_peer *peer_alloc(uint16_t bvci)
static void peer_free(struct gbprox_peer *peer) { + rate_ctr_group_free(peer->ctrg); llist_del(&peer->list); talloc_free(peer); }