[sr-dev] git:master:8153309c: dialog: free regex struct for rpc dlg.list_match
Daniel-Constantin Mierla
miconda at gmail.com
Wed Dec 5 18:34:45 CET 2018
Module: kamailio
Branch: master
Commit: 8153309c25dd65b8b52a4726f2a60d47b1fe61d3
URL: https://github.com/kamailio/kamailio/commit/8153309c25dd65b8b52a4726f2a60d47b1fe61d3
Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at 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/8153309c25dd65b8b52a4726f2a60d47b1fe61d3.diff
Patch: https://github.com/kamailio/kamailio/commit/8153309c25dd65b8b52a4726f2a60d47b1fe61d3.patch
---
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;
More information about the sr-dev
mailing list