[vlc-devel] [PATCH] test: media: fix memory leak

Alexandre Janniaux ajanni at videolabs.io
Wed Jan 27 15:57:34 UTC 2021


---
 test/libvlc/media.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/test/libvlc/media.c b/test/libvlc/media.c
index 65673c855f..2d27cbb1d6 100644
--- a/test/libvlc/media.c
+++ b/test/libvlc/media.c
@@ -367,6 +367,7 @@ int main(int i_argc, char *ppsz_argv[])
         test_media_preparsed (vlc, psz_test_path, psz_test_url,
                               libvlc_media_parse_network,
                               libvlc_media_parsed_status_done);
+        libvlc_release(vlc);
         return 0;
     }
 
-- 
2.30.0



More information about the vlc-devel mailing list