Skip to content

Commit

Permalink
bin: fix SIGSEGV at exit on OS/2
Browse files Browse the repository at this point in the history
--stats was added at commit c24ea5f.
So free arguments after this.

Signed-off-by: Rémi Denis-Courmont <[email protected]>
  • Loading branch information
komh authored and Rémi Denis-Courmont committed Feb 23, 2014
1 parent b2aa291 commit bb3d20e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/vlc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit bb3d20e

Please sign in to comment.