[vlc-commits] os2: fix crash and memory leaks at exit
KO Myung-Hun
git at videolan.org
Fri Mar 23 09:55:32 CET 2018
vlc | branch: master | KO Myung-Hun <komh78 at gmail.com> | Thu Mar 22 23:41:34 2018 +0900| [68c70c11a3b2f313eb12ebc8863ba711d9139b21] | committer: Jean-Baptiste Kempf
os2: fix crash and memory leaks at exit
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=68c70c11a3b2f313eb12ebc8863ba711d9139b21
---
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;
More information about the vlc-commits
mailing list