manager.c: Fix presencestate object leak

ast_presence_state allocates subtype and message. We straightforwardly
need to clean those up.
21
Nathan Monfils 4 months ago
parent c1f5c1abe5
commit 85cf8fcae8

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

Loading…
Cancel
Save