diff --git a/src/common/pcu_sock.c b/src/common/pcu_sock.c index e7bedd1f2..7d0c7965f 100644 --- a/src/common/pcu_sock.c +++ b/src/common/pcu_sock.c @@ -1178,7 +1178,7 @@ int pcu_sock_init(const char *path) struct osmo_fd *bfd; int rc; - state = talloc_zero(NULL, struct pcu_sock_state); + state = talloc_zero(g_bts_sm, struct pcu_sock_state); if (!state) return -ENOMEM;