Skip to content

Commit

Permalink
Merge pull request #518 from phil-lavin/backport-loading-dialogs-from…
Browse files Browse the repository at this point in the history
…-database

[4.3 BACKPORT] pua_dialoginfo: don't free dlginfo structure in dlg loaded callback
  • Loading branch information
miconda committed Mar 1, 2016
2 parents 9165e85 + 11715a3 commit b8a5651
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion modules/pua_dialoginfo/pua_dialoginfo.c
Expand Up @@ -609,7 +609,11 @@ __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) free_dlginfo_cell(dlginfo);
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 b8a5651

Please sign in to comment.