[vlc-commits] [Git][videolan/vlc][master] test: libvlc/meta: fix early return leak

Steve Lhomme (@robUx4) gitlab at videolan.org
Thu Oct 22 16:42:28 UTC 2026



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
d3a8b458 by Alexandre Janniaux at 2026-10-22T16:17:49+00:00
test: libvlc/meta: fix early return leak

When the module is not found, the whole libvlc instance is leaked.

- - - - -


1 changed file:

- test/libvlc/meta.c


Changes:

=====================================
test/libvlc/meta.c
=====================================
@@ -40,7 +40,10 @@ static int test_meta (const char ** argv, int argc)
     assert (vlc != NULL);
 
     if (!module_exists("taglib"))
+    {
+        libvlc_release (vlc);
         return 77;
+    }
 
     media = libvlc_media_new_path(SRCDIR "/samples/meta.mp3");
     assert( media );



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

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/d3a8b4588e8e35e6bbbb57b2f61de7f3055f8d1a
You're receiving this email because of your account on code.videolan.org. Manage all notifications: https://code.videolan.org/-/profile/notifications | Help: https://code.videolan.org/help




More information about the vlc-commits mailing list