From 1657ccfc68fe3c08d7afae5dde77974b7daf48d8 Mon Sep 17 00:00:00 2001 From: Nathan Monfils Date: Mon, 8 Sep 2025 17:56:02 +0200 Subject: [PATCH] manager.c: Fix presencestate object leak ast_presence_state allocates subtype and message. We straightforwardly need to clean those up. --- main/manager.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main/manager.c b/main/manager.c index 3d24e33cba..d4fea174dd 100644 --- a/main/manager.c +++ b/main/manager.c @@ -5524,6 +5524,9 @@ static int action_presencestate(struct mansession *s, const struct message *m) } astman_append(s, "\r\n"); + ast_free(subtype); + ast_free(message); + return 0; } -- 2.47.3