From 90cdd28e6f482dac3c3307c23187b2b6f1e4999c Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Tue, 21 Dec 2010 13:29:14 +0100 Subject: ho: Make this allocation a child of the BSC talloc context Do not use the NULL context for this allocation. It should hang off the gsm_subscriber_connection but for now at least make it the child of the BSC so it is showing up in the talloc report. --- openbsc/src/handover_logic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'openbsc/src/handover_logic.c') diff --git a/openbsc/src/handover_logic.c b/openbsc/src/handover_logic.c index 30cea7b0f..511742eb2 100644 --- a/openbsc/src/handover_logic.c +++ b/openbsc/src/handover_logic.c @@ -111,7 +111,7 @@ int bsc_handover_start(struct gsm_lchan *old_lchan, struct gsm_bts *bts) return -ENOSPC; } - ho = talloc_zero(NULL, struct bsc_handover); + ho = talloc_zero(tall_bsc_ctx, struct bsc_handover); if (!ho) { LOGP(DHO, LOGL_FATAL, "Out of Memory\n"); lchan_free(new_lchan); -- cgit v1.2.3