Unverified Commit 1239f025 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!14758 media: platform: allegro-dvt: Fix possible memory leak in allocate_buffers_internal()

parents 47177ff5 7815d3a6
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1208,8 +1208,10 @@ static int allocate_buffers_internal(struct allegro_channel *channel,
		INIT_LIST_HEAD(&buffer->head);

		err = allegro_alloc_buffer(dev, buffer, size);
		if (err)
		if (err) {
			kfree(buffer);
			goto err;
		}
		list_add(&buffer->head, list);
	}