From: Nathan Monfils Date: Mon, 8 Sep 2025 15:56:02 +0000 (+0200) Subject: manager.c: Fix presencestate object leak X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=170048a41e70a544db4fcaa8d688757947bc16bc;p=thirdparty%2Fasterisk.git manager.c: Fix presencestate object leak ast_presence_state allocates subtype and message. We straightforwardly need to clean those up. --- 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; }