A new branch was added to this loop in dbd74ba3c8f2a11f6ce6c177acfd3bbf1c0ba763
that would either continue or break, but neglected to free the pointer obtained
during the loop that had been freed in all previous paths.

Signed-off-by: Vicki Pfau <v...@endrift.com>
---
 libavutil/hwcontext_vaapi.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavutil/hwcontext_vaapi.c b/libavutil/hwcontext_vaapi.c
index 95aa38d9d2..04f3ca4344 100644
--- a/libavutil/hwcontext_vaapi.c
+++ b/libavutil/hwcontext_vaapi.c
@@ -1808,6 +1808,7 @@ static int vaapi_device_create(AVHWDeviceContext *ctx, 
const char *device,
                 } else if (vendor_id) {
                     drmDevicePtr device;
                     char drm_vendor[8];
+                    drmFreeVersion(info);
                     if (drmGetDevice(priv->drm_fd, &device)) {
                         av_log(ctx, AV_LOG_VERBOSE,
                                "Failed to get DRM device info for device 
%d.\n", n);
-- 
2.49.0

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to