gfc_resolve_blocks (code->block, gfc_current_ns);
gfc_current_ns = old_ns;
- if (ref)
- free (ref);
+ free(ref);
}
/* 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;
}
NOTE ("Changing pdts, current_unit = %p", (void *) (new->u.p.current_unit));
temp = *old;
*old = new;
- if (temp)
- free (temp);
+ free(temp);
}
/* Destroy an adv_cond structure. */
/* Loop over the queue entries until they are finished. */
while (ctq)
{
- if (prev)
- free (prev);
+ free(prev);
prev = ctq;
if (!au->error.has_error)
{
fnp->format != FMT_NONE; fnp++)
if (fnp->format == FMT_DT)
{
- if (GFC_DESCRIPTOR_DATA(fnp->u.udf.vlist))
- free (GFC_DESCRIPTOR_DATA(fnp->u.udf.vlist));
+ free(GFC_DESCRIPTOR_DATA(fnp->u.udf.vlist));
free (fnp->u.udf.vlist);
}
{
free (dtp->u.p.current_unit->filename);
dtp->u.p.current_unit->filename = NULL;
- if (dtp->u.p.current_unit->ls)
- free (dtp->u.p.current_unit->ls);
+ free(dtp->u.p.current_unit->ls);
dtp->u.p.current_unit->ls = NULL;
}
free_newunit = true;
{
free (dtp->u.p.current_unit->filename);
dtp->u.p.current_unit->filename = NULL;
- if (dtp->u.p.current_unit->ls)
- free (dtp->u.p.current_unit->ls);
+ free(dtp->u.p.current_unit->ls);
dtp->u.p.current_unit->ls = NULL;
}
free_newunit = true;
static int
mem_close (unix_stream *s)
{
- if (s)
- free (s);
+ free(s);
return 0;
}