[vlc-devel] [PATCH 6/6] os2: fix crash and memory leaks at exit

KO Myung-Hun komh78 at gmail.com
Thu Mar 22 15:41:34 CET 2018


---
 bin/vlc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/vlc.c b/bin/vlc.c
index 471ab5f423..f06cc30abd 100644
--- a/bin/vlc.c
+++ b/bin/vlc.c
@@ -276,7 +276,7 @@ int main(int argc, const char *argv[])
 out:
     libvlc_release (vlc);
 #ifdef __OS2__
-    for (int i = count - argc; i < argc; i++)
+    for (int i = count - argc + 1; i < count; i++)
         free(args[i]);
 #endif
     return ret;
-- 
2.13.3



More information about the vlc-devel mailing list