pulse-server: free pending client message

If the client is destroyed before it could completely read the message,
free the pending message as well.

See #1840
This commit is contained in:
Wim Taymans 2021-11-23 18:13:35 +01:00
parent 9feecb36d0
commit ac4ec20b01

View file

@ -125,6 +125,9 @@ void client_free(struct client *client)
spa_list_consume(p, &client->pending_samples, link)
pending_sample_free(p);
if (client->message)
message_free(impl, client->message, false, false);
spa_list_consume(msg, &client->out_messages, link)
message_free(impl, msg, true, false);