manager.c: Fix presencestate object leak

ast_presence_state allocates subtype and message. We straightforwardly
need to clean those up.
pull/1453/head
Nathan Monfils 4 weeks ago committed by github-actions[bot]
parent 1b42eda449
commit 170048a41e

@ -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;
}

Loading…
Cancel
Save