Browse Source

dialog: free regex struct for rpc dlg.list_match

Daniel-Constantin Mierla 6 years ago
parent
commit
8153309c25
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/modules/dialog/dialog.c

+ 4 - 0
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;