Revision 47943338 chunker_player/chunker_player.c

View differences:

chunker_player/chunker_player.c
617 617
	if(SilentMode != 3) //mode 3 is without P2P peer process
618 618
	{
619 619

  
620
#ifndef __WIN32__
621

  
622 620
		char* parameters_vector[255];
623 621
		parameters_vector[0] = argv0;
624 622

  
......
640 638
		}
641 639
		parameters_vector[par_count] = NULL;
642 640

  
641
#ifndef __WIN32__
643 642
		int d;
644 643
		int stdoutS, stderrS;
645 644
		FILE* stream;
......
669 668
		dup2(stderrS, STDERR_FILENO);
670 669

  
671 670
		fclose(stream);
672

  
673
		for(i=1; i<par_count; i++)
674
			free(parameters_vector[i]);
675

  
676 671
#else
677 672
		STARTUPINFO sti;
678 673
		SECURITY_ATTRIBUTES sats = { 0 };
......
707 702
		}
708 703
#endif
709 704

  
705
		for(i=1; i<par_count; i++)
706
			free(parameters_vector[i]);
710 707
	}
711 708

  
712 709
#ifdef RESTORE_SCREEN_ON_ZAPPING

Also available in: Unified diff