aboutsummaryrefslogtreecommitdiff
path: root/libgfortran/caf/single.c
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <aldot@gcc.gnu.org>2023-05-08 09:45:19 +0200
committerBernhard Reutner-Fischer <aldot@gcc.gnu.org>2023-05-08 10:46:47 +0200
commitc93bde224c075c14d5ee54331386cbcda48c65dd (patch)
tree09ed17fe71ee7a9bcca106e0cc67bb0b9bef9b4b /libgfortran/caf/single.c
parent6d6c17e45f62cfe0b7de502af299348fca548b01 (diff)
downloadgcc-c93bde224c075c14d5ee54331386cbcda48c65dd.zip
gcc-c93bde224c075c14d5ee54331386cbcda48c65dd.tar.gz
gcc-c93bde224c075c14d5ee54331386cbcda48c65dd.tar.bz2
fortran: Fix coding style around free()
Fix coding-style errors introduced in ca2f64d5d08c1699ca4b7cb2bf6a76692e809e0f gcc/fortran/ChangeLog: * resolve.cc (resolve_select_type): Fix coding style. libgfortran/ChangeLog: * caf/single.c (_gfortran_caf_register): Fix coding style. * io/async.c (update_pdt, async_io): Likewise. * io/format.c (free_format_data): Likewise. * io/transfer.c (st_read_done_worker, st_write_done_worker): Likewise. * io/unix.c (mem_close): Likewise.
Diffstat (limited to 'libgfortran/caf/single.c')
-rw-r--r--libgfortran/caf/single.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libgfortran/caf/single.c b/libgfortran/caf/single.c
index fea8b0c..c100d88 100644
--- a/libgfortran/caf/single.c
+++ b/libgfortran/caf/single.c
@@ -163,8 +163,8 @@ _gfortran_caf_register (size_t size, caf_register_t type, caf_token_t *token,
/* Freeing the memory conditionally seems pointless, but
caf_internal_error () may return, when a stat is given and then the
memory may be lost. */
- free(local);
- free(*token);
+ free (local);
+ free (*token);
caf_internal_error (alloc_fail_msg, stat, errmsg, errmsg_len);
return;
}