Skip to content

Commit

Permalink
pua_dialoginfo: don't free dlginfo structure in dlg loaded callback
Browse files Browse the repository at this point in the history
- the structure will be destroyed in a later dlg callback, enabled by
  dlg_api.register_dlgcb(), via free_dlginfo_cell()
- based and includes partial patch from GH kamailio#492, by Phil Lavin
  • Loading branch information
miconda authored and Phil Lavin committed Nov 13, 2017
1 parent 707b449 commit 0bb077e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions modules/pua_dialoginfo/pua_dialoginfo.c
Original file line number Diff line number Diff line change
Expand Up @@ -656,6 +656,12 @@ __dialog_loaded(struct dlg_cell *dlg, int type, struct dlg_cb_params *_params)
LM_DBG("INVITE dialog loaded: from=%.*s\n", dlg->from_uri.len, dlg->from_uri.s);

dlginfo=get_dialog_data(dlg, type);

if(dlginfo!=NULL) {
LM_DBG("dialog info initialized (from=%.*s)\n",
dlg->from_uri.len, dlg->from_uri.s);
/* free_dlginfo_cell(dlginfo); */
}
}


Expand Down

0 comments on commit 0bb077e

Please sign in to comment.