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.
This commit is contained in:
parent
63dbfc6a2b
commit
90cdd28e6f
|
@ -111,7 +111,7 @@ int bsc_handover_start(struct gsm_lchan *old_lchan, struct gsm_bts *bts)
|
||||||
return -ENOSPC;
|
return -ENOSPC;
|
||||||
}
|
}
|
||||||
|
|
||||||
ho = talloc_zero(NULL, struct bsc_handover);
|
ho = talloc_zero(tall_bsc_ctx, struct bsc_handover);
|
||||||
if (!ho) {
|
if (!ho) {
|
||||||
LOGP(DHO, LOGL_FATAL, "Out of Memory\n");
|
LOGP(DHO, LOGL_FATAL, "Out of Memory\n");
|
||||||
lchan_free(new_lchan);
|
lchan_free(new_lchan);
|
||||||
|
|
Loading…
Reference in New Issue