Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Flight Data Recorder

## Description

The flight data recorder (fdr) is a daemon which enables ftrace probes,
Expand Down
2 changes: 2 additions & 0 deletions fdrd.c
Original file line number Diff line number Diff line change
Expand Up @@ -590,6 +590,7 @@ read_config_file(const char *fpath, const struct stat *sb, int typeflag)
insp = malloc(sizeof(struct instance));
if (insp == NULL) {
perror("malloc");
fclose(f);
return 1;
}
insque(insp, &anchor);
Expand Down Expand Up @@ -714,6 +715,7 @@ read_config_file(const char *fpath, const struct stat *sb, int typeflag)
insp->ilast = itp;
}
}
fclose(f);
return 0;
}

Expand Down