From: Michal Hajek Date: Mon, 13 Oct 2025 12:02:43 +0000 (+0200) Subject: manager: fix double free of criteria variable when adding filter X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0cf61f8d47a106a372b2c444615b6685a30b32b3;p=thirdparty%2Fasterisk.git manager: fix double free of criteria variable when adding filter Signed-off-by: Michal Hajek Fixes: #1531 --- diff --git a/main/manager.c b/main/manager.c index d4fea174dd..f6e86e8fc4 100644 --- a/main/manager.c +++ b/main/manager.c @@ -5705,7 +5705,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");