aboutsummaryrefslogtreecommitdiff
path: root/libgfortran/caf/single.c
diff options
context:
space:
mode:
Diffstat (limited to 'libgfortran/caf/single.c')
-rw-r--r--libgfortran/caf/single.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/libgfortran/caf/single.c b/libgfortran/caf/single.c
index bb06bd3..fea8b0c 100644
--- a/libgfortran/caf/single.c
+++ b/libgfortran/caf/single.c
@@ -163,10 +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. */
- if (local)
- free (local);
- if (*token)
- free (*token);
+ free(local);
+ free(*token);
caf_internal_error (alloc_fail_msg, stat, errmsg, errmsg_len);
return;
}