Browse code

dialog: free regex struct for rpc dlg.list_match

Daniel-Constantin Mierla authored on 05/12/2018 17:34:01
Showing 1 changed files
... ...
@@ -2588,6 +2588,10 @@ static void rpc_dlg_list_match_ex(rpc_t *rpc, void *c, int with_context)
2588 2588
 			break;
2589 2589
 		}
2590 2590
 	}
2591
+	if(vop == 1) {
2592
+		regfree(&mre);
2593
+	}
2594
+
2591 2595
 	if(m==0) {
2592 2596
 		rpc->fault(c, 404, "Not found");
2593 2597
 		return;