X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=filesetup.c;h=db80a8b7e28ba2392de54eab64bf2fe1b693fbc6;hp=5ce0f6803ae7d952c262d25728b1a60ec7bff86f;hb=190b8f0c9c1c1a99ed26fd953f7af9023f9533ee;hpb=1417daeb92c44632f2e1e376d736a0f198d7af8d diff --git a/filesetup.c b/filesetup.c index 5ce0f680..db80a8b7 100644 --- a/filesetup.c +++ b/filesetup.c @@ -1109,7 +1109,8 @@ static void get_file_type(struct fio_file *f) } } -static void set_already_allocated(const char *fname) { +static void set_already_allocated(const char *fname) +{ struct file_name *fn; fn = malloc(sizeof(struct file_name)); @@ -1135,7 +1136,8 @@ static int is_already_allocated(const char *fname) return 0; } -static void free_already_allocated() { +static void free_already_allocated(void) +{ struct flist_head *entry, *tmp; struct file_name *fn; @@ -1488,6 +1490,7 @@ int fio_files_done(struct thread_data *td) } /* free memory used in initialization phase only */ -void filesetup_mem_free() { +void filesetup_mem_free(void) +{ free_already_allocated(); }