free2
This commit is contained in:
parent
1da31a52c9
commit
75449fc605
@ -36,9 +36,9 @@ int cut(char **argv, char *command){
|
||||
}
|
||||
|
||||
int main (){
|
||||
char* argv[100];
|
||||
int ile, i;
|
||||
while (1){
|
||||
char* argv[100];
|
||||
char komenda[max], directory[max];
|
||||
if (getcwd(directory, sizeof(directory)) == NULL){
|
||||
perror("getcwd() error");
|
||||
@ -60,6 +60,7 @@ int main (){
|
||||
|
||||
for(i=0; i<ile; i++)
|
||||
free(argv[i]);
|
||||
free(argv);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user