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

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

parents 7b763303 5fb6d651
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1509,8 +1509,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);
	}