From ecf10e0b1cffcb742b302a2bbead9f9d55fe362e Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Mon, 9 Nov 2020 15:51:58 +0100 Subject: [PATCH] pulse-server: remove useless allocation --- src/modules/module-protocol-pulse/pulse-server.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/modules/module-protocol-pulse/pulse-server.c b/src/modules/module-protocol-pulse/pulse-server.c index d99e32265..3fdcfa910 100644 --- a/src/modules/module-protocol-pulse/pulse-server.c +++ b/src/modules/module-protocol-pulse/pulse-server.c @@ -1782,12 +1782,6 @@ static int do_create_record_stream(struct client *client, uint32_t command, uint if (stream->channel == SPA_ID_INVALID) goto error_errno; - stream->buffer = calloc(1, stream->attr.maxlength); - if (stream->buffer == NULL) - goto error_errno; - - spa_ringbuffer_init(&stream->ring); - stream->create_tag = tag; stream->ss = ss; stream->map = map;