'struct tcap_component' is allocated off the dialogue, not the invocation

This commit is contained in:
Harald Welte 2010-07-18 23:38:50 +02:00
parent 2ede379bb9
commit c671dff577
1 changed files with 1 additions and 1 deletions

View File

@ -149,7 +149,7 @@ int tcap_cha_tc_result_req(struct tcap_dialogue *td, int8_t inv_id, int last,
return -ENOENT;
/* Allocate a new component structure */
tcomp = talloc_zero(ti, struct tcap_component);
tcomp = talloc_zero(td, struct tcap_component);
if (!tcomp)
return -ENOMEM;
comp = &tcomp->comp;