manager.c: Fix presencestate object leak

ast_presence_state allocates subtype and message. We straightforwardly
need to clean those up.
This commit is contained in:
Nathan Monfils
2025-09-08 17:56:02 +02:00
parent a7520dcf26
commit cefef8eacb

View File

@@ -5528,6 +5528,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;
}