Commit bb3d20e7 authored by KO Myung-Hun's avatar KO Myung-Hun Committed by Rémi Denis-Courmont

bin: fix SIGSEGV at exit on OS/2

--stats was added at commit c24ea5fb.
So free arguments after this.
Signed-off-by: default avatarRémi Denis-Courmont <remi@remlab.net>
parent b2aa2919
......@@ -275,7 +275,7 @@ int main( int i_argc, const char *ppsz_argv[] )
out:
libvlc_release (vlc);
#ifdef __OS2__
for (int i = 2; i < argc; i++)
for (int i = argc - i_argc; i < argc; i++)
free (argv[i]);
#endif
return ret;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment