Skip to content

Commit

Permalink
dialog: Fix $dlg_val memleak
Browse files Browse the repository at this point in the history
Fixed #3135
  • Loading branch information
liviuchircu committed Sep 15, 2023
1 parent 4244c28 commit e2bfeda
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/dialog/dlg_vals.c
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,7 @@ int pv_get_dlg_val(struct sip_msg *msg, pv_param_t *param, pv_value_t *res)
isval.s = param->pvv;
if (fetch_dlg_value(dlg, &param->pvn.u.isname.name.s, &type, &isval, 1)!=0)
return pv_get_null(msg, param, res);
param->pvv = isval.s;

if (type == DLG_VAL_TYPE_STR) {
res->flags = PV_VAL_STR;
Expand Down

0 comments on commit e2bfeda

Please sign in to comment.