From 328b540075b0af8ce0528877d8ae4071f4efc8f5 Mon Sep 17 00:00:00 2001 From: Michal Hajek Date: Mon, 13 Oct 2025 14:02:43 +0200 Subject: [PATCH] manager: fix double free of criteria variable when adding filter Signed-off-by: Michal Hajek Fixes: #1531 --- main/manager.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/manager.c b/main/manager.c index baf2521a4b..b9afa9ce83 100644 --- a/main/manager.c +++ b/main/manager.c @@ -5709,7 +5709,7 @@ static int action_filter(struct mansession *s, const struct message *m) } res = manager_add_filter(criteria, filter, s->session->includefilters, s->session->excludefilters); - ast_std_free(criteria); + ast_free(criteria); if (res != FILTER_SUCCESS) { if (res == FILTER_ALLOC_FAILED) { astman_send_error(s, m, "Internal Error. Failed to allocate regex for filter");