From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.ffmpeg.org (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTPS id 56D154DE7C for ; Thu, 5 Jun 2025 10:52:25 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTP id 42BDB68CA49; Thu, 5 Jun 2025 13:52:21 +0300 (EEST) Received: from endrift.com (endrift.com [173.255.198.10]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTPS id F153D68C03D for ; Thu, 5 Jun 2025 13:52:13 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=endrift.com; s=2020; t=1749120732; bh=Rty+CTYEfHnwFbSaWt5MOdhbZYuBgDVfUarGmiFsLjM=; h=From:To:Cc:Subject:Date:From; b=LCtNTvWJOwTGhd/fy2+Fq7vxMDUKxKFwfCOpzmaREIA8bgk0z6sg5Fd2d8hD2HRQc pdS6E6AwqLoHpEjuzGY7i6dLyAOKgFfMijTHT8B0ITsAJIRUY3sGsai7yxmuT0Tg+Y 4v+b8FlyqphK/fVz8MZz22EK4VSgHGi5TeuD6NNY7eBfyCwX3ZbKWaGOVlPcE6V1U6 vbZFz6IrNGcHd0lQyEcNqu42anwGiG/JWtgS/lBpEaxKtCVq47SbDcYvKkuq9iiasy TeyrH3/HNCftoTZSs+DkpcFWl/waCfu6p5qBkxJmdUyOTYlpBFSVJ9BjFFA3yYj2mC rTwQfJKbh3APg== Received: from nebulosa.vulpes.eutheria.net (71-212-74-234.tukw.qwest.net [71.212.74.234]) by endrift.com (Postfix) with ESMTPSA id 7ED81A010; Thu, 5 Jun 2025 03:52:12 -0700 (PDT) From: Vicki Pfau To: ffmpeg-devel@ffmpeg.org Date: Thu, 5 Jun 2025 03:52:04 -0700 Message-ID: <20250605105204.1481999-1-vi@endrift.com> X-Mailer: git-send-email 2.49.0 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH] lavu/hwcontext_vaapi: Fix drmVersionPtr leak X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Cc: Vicki Pfau Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: 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 --- 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".