avb: check some allocation errors

This commit is contained in:
Wim Taymans 2026-05-04 09:56:18 +02:00
parent 32bb568225
commit be6bfba8eb
2 changed files with 4 additions and 0 deletions

View file

@ -567,6 +567,8 @@ struct stream *server_create_stream(struct server *server, struct stream *stream
htons(index);
stream->buffer_data = calloc(1, BUFFER_SIZE);
if (stream->buffer_data == NULL)
goto error_free;
stream->buffer_size = BUFFER_SIZE;
spa_ringbuffer_init(&stream->ring);