frontends/va: Fix leak when destroying VAEncCodedBufferType

Fixes: be4287c3aa ("pipe: Extend get_feedback with additional metadata")
Reviewed-by: Sil Vilerino <sivileri@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29217>
This commit is contained in:
David Rosca 2024-05-15 13:29:46 +02:00 committed by Marge Bot
parent 19a875f7dc
commit cc03f2ea5a

View file

@ -316,7 +316,7 @@ vlVaDestroyBuffer(VADriverContextP ctx, VABufferID buf_id)
if (buf->type == VAEncCodedBufferType) {
VACodedBufferSegment* node = buf->data;
while(!node) {
while (node) {
VACodedBufferSegment* next = (VACodedBufferSegment*) node->next;
FREE(node);
node = next;