[vlc-commits] [Git][videolan/vlc][master] nvdec: fix dec-dev leak in case of failure

Steve Lhomme (@robUx4) gitlab at videolan.org
Thu Apr 16 07:59:47 UTC 2026



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
704dc699 by Thomas Guillem at 2026-04-16T07:33:49+00:00
nvdec: fix dec-dev leak in case of failure

Regression from 257a38034142c670b127e2d5ac61b8dc0e937801

- - - - -


1 changed file:

- modules/hw/nvdec/nvdec.c


Changes:

=====================================
modules/hw/nvdec/nvdec.c
=====================================
@@ -778,6 +778,8 @@ static int OpenDecoder(vlc_object_t *p_this)
     if (devsys == NULL)
     {
         msg_Dbg(p_this, "Missing decoder device");
+        if (dec_device != NULL)
+            vlc_decoder_device_Release(dec_device);
         return VLC_EGENERIC;
     }
 



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/704dc69987edc3f166a24fdf963b1a4cba209467

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/704dc69987edc3f166a24fdf963b1a4cba209467
You're receiving this email because of your account on code.videolan.org.




More information about the vlc-commits mailing list