diff --git a/src/gprs/gtphub.c b/src/gprs/gtphub.c index 211018b53..5e7520e39 100644 --- a/src/gprs/gtphub.c +++ b/src/gprs/gtphub.c @@ -2708,6 +2708,10 @@ static struct gtphub_peer_port *gtphub_addr_add_port(struct gtphub_peer_addr *a, pp->counters_io = rate_ctr_group_alloc(osmo_gtphub_ctx, >phub_ctrg_io_desc, 0); + if (!pp->counters_io) { + talloc_free(pp); + return NULL; + } llist_add(&pp->entry, &a->ports);