free5
This commit is contained in:
parent
52327ed3c8
commit
8e90990779
@ -38,7 +38,7 @@ int cut(char **argv, char *command){
|
||||
int main (){
|
||||
int ile, i;
|
||||
while (1){
|
||||
char* argv[100];
|
||||
char** argv;
|
||||
char komenda[max], directory[max];
|
||||
if (getcwd(directory, sizeof(directory)) == NULL){
|
||||
perror("getcwd() error");
|
||||
@ -58,7 +58,9 @@ int main (){
|
||||
else
|
||||
wait(NULL);
|
||||
|
||||
free(argv);
|
||||
for(i=0; i<ile; i++)
|
||||
free(argv[i]);
|
||||
free(argv[i]);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user