Skip to content

Commit

Permalink
Add new rm commands in Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
wangvsa committed Aug 6, 2020
1 parent 28f5fae commit d44785e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,6 @@ install:: all
install -m 755 tools/C/recorder2text.out $(bindir)

clean::
rm -f *.o *.a lib/*.o lib/*.po lib/*.a lib/*.so
rm -f *.o *.a lib/*.o lib/*.po lib/*.a lib/*.so tools/C/*.so tools/C/*.out

distclean:: clean
6 changes: 3 additions & 3 deletions tools/C/reader.c
Original file line number Diff line number Diff line change
Expand Up @@ -146,12 +146,12 @@ void decompress_records(Record *records, int len) {
void release_resources(RecorderReader *reader) {
int ranks = reader->RGD.total_ranks;

int rank;
int i, j, rank;
for (rank = 0; rank < ranks; rank++) {

Record* records = reader->records[rank];
for(int i = 0; i < reader->RLDs[rank].total_records; i++) {
for(int j = 0; j < records[i].arg_count; j++)
for(i = 0; i < reader->RLDs[rank].total_records; i++) {
for(j = 0; j < records[i].arg_count; j++)
free(records[i].args[j]);
free(records[i].args);
}
Expand Down

0 comments on commit d44785e

Please sign in to comment.