* [FFmpeg-devel] [PATCH] lavu/hwcontext_vaapi: Fix drmVersionPtr leak
@ 2025-06-05 10:52 Vicki Pfau
0 siblings, 0 replies; only message in thread
From: Vicki Pfau @ 2025-06-05 10:52 UTC (permalink / raw)
To: ffmpeg-devel; +Cc: Vicki Pfau
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 <vi@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-request@ffmpeg.org with subject "unsubscribe".
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-06-05 10:52 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-06-05 10:52 [FFmpeg-devel] [PATCH] lavu/hwcontext_vaapi: Fix drmVersionPtr leak Vicki Pfau
Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
This inbox may be cloned and mirrored by anyone:
git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \
ffmpegdev@gitmailbox.com
public-inbox-index ffmpegdev
Example config snippet for mirrors.
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git