Skip to content

Commit 23b9093

Browse files
at
1 parent baf5d07 commit 23b9093

File tree

17 files changed

+88
-113
lines changed

17 files changed

+88
-113
lines changed

DoTheWorld.zip

538 KB
Binary file not shown.

README.md

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -574,6 +574,7 @@ int main (){
574574

575575
printf("elements:---------------------------------\n");
576576
DtwStringArray *sub_elements = dtw.resource.list_names(values);
577+
DtwStringArray_sort(sub_elements);
577578
DtwResource_protected(values){
578579
dtw.string_array.represent(sub_elements);
579580
dtw.string_array.free(sub_elements);
@@ -773,11 +774,6 @@ int main(){
773774
printf("dir : %s\n",dir);
774775
printf("full_path : %s\n",full_path);
775776

776-
777-
free(name);
778-
free(extension);
779-
free(dir);
780-
free(full_path);
781777
dtw.tree.part.free(part);
782778
}
783779
~~~
@@ -1067,10 +1063,8 @@ bool filter_txt(struct DtwTreePart *part){
10671063
return false;
10681064
}
10691065
if(strcmp(extension,"txt") == 0){
1070-
free(extension);
10711066
return true;
10721067
}
1073-
free(extension);
10741068
return false;
10751069
}
10761070
@@ -1182,7 +1176,6 @@ int main(){
11821176
dtw.tree.part.hardware_modify(part,DTW_SET_AS_ACTION);
11831177
11841178
}
1185-
free(extension);
11861179
}
11871180
11881181
dtw.tree.hardware_commit_tree(tree);
@@ -1224,7 +1217,6 @@ int main(){
12241217
dtw.tree.part.hardware_modify(part,DTW_SET_AS_ACTION);
12251218

12261219
}
1227-
free(extension);
12281220
}
12291221
DtwTreeTransactionReport *report = dtw.tree.create_report(tree);
12301222
dtw.tree.transaction_report.represent(report);

0 commit comments

Comments
 (0)