aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2023-04-11 11:36:19 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2023-04-11 11:36:19 +0200
commit31c759165ac379b31566fcf560553e7e8ce8c027 (patch)
tree0462833b3868d4ce52e235196cfa6ef82405dda6
parent38491d813bd331fd0324383189ae888670f40eb4 (diff)
pcu_sock: Allocate pcu_sock_state using g_bts_sm talloc context
-rw-r--r--src/common/pcu_sock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/pcu_sock.c b/src/common/pcu_sock.c
index e7bedd1f..7d0c7965 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;