From bd8eab3ffb95ca7e0ef4a11f84303fae5e15862a Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Mon, 4 May 2026 13:46:09 +0200 Subject: [PATCH] raop: handle allocation error and avoid crash later --- src/modules/module-raop/rtsp-client.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/modules/module-raop/rtsp-client.c b/src/modules/module-raop/rtsp-client.c index 7d3136f8c..e6acd0694 100644 --- a/src/modules/module-raop/rtsp-client.c +++ b/src/modules/module-raop/rtsp-client.c @@ -90,6 +90,10 @@ struct pw_rtsp_client *pw_rtsp_client_new(struct pw_loop *main_loop, spa_list_init(&client->pending); spa_hook_list_init(&client->listener_list); client->headers = pw_properties_new(NULL, NULL); + if (client->headers == NULL) { + free(client); + return NULL; + } pw_array_init(&client->content, 4096); client->recv_state = CLIENT_RECV_NONE;