mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-19 03:08:45 +00:00
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:
@@ -5528,6 +5528,9 @@ static int action_presencestate(struct mansession *s, const struct message *m)
|
|||||||
}
|
}
|
||||||
astman_append(s, "\r\n");
|
astman_append(s, "\r\n");
|
||||||
|
|
||||||
|
ast_free(subtype);
|
||||||
|
ast_free(message);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user