Module: kamailio
Branch: master
Commit: 8153309c25dd65b8b52a4726f2a60d47b1fe61d3
URL:
https://github.com/kamailio/kamailio/commit/8153309c25dd65b8b52a4726f2a60d4…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-12-05T18:34:01+01:00
dialog: free regex struct for rpc dlg.list_match
---
Modified: src/modules/dialog/dialog.c
---
Diff:
https://github.com/kamailio/kamailio/commit/8153309c25dd65b8b52a4726f2a60d4…
Patch:
https://github.com/kamailio/kamailio/commit/8153309c25dd65b8b52a4726f2a60d4…
---
diff --git a/src/modules/dialog/dialog.c b/src/modules/dialog/dialog.c
index 06fe26bfce..ce69fc94ca 100644
--- a/src/modules/dialog/dialog.c
+++ b/src/modules/dialog/dialog.c
@@ -2588,6 +2588,10 @@ static void rpc_dlg_list_match_ex(rpc_t *rpc, void *c, int
with_context)
break;
}
}
+ if(vop == 1) {
+ regfree(&mre);
+ }
+
if(m==0) {
rpc->fault(c, 404, "Not found");
return;