Commit 6c13c5f2 by Janne Blomqvist

Use XDELETEVEC instead of free

From-SVN: r172729
parent 93acb62c
2011-04-19 Janne Blomqvist <jb@gcc.gnu.org>
* frontend-passes.c (gfc_run_passes): Use XDELETEVEC instead of
free.
2011-04-19 Janne Blomqvist <jb@gcc.gnu.org>
* misc.c (gfc_getmem): Remove function.
* gfortran.h: Remove gfc_getmem prototype. Replace gfc_getmem
usage with XCNEW or XCNEWVEC.
......
......@@ -71,9 +71,7 @@ gfc_run_passes (gfc_namespace *ns)
if (gfc_option.dump_fortran_optimized)
gfc_dump_parse_tree (ns, stdout);
/* FIXME: The following should be XDELETEVEC(expr_array);
but we cannot do that because it depends on free. */
free (expr_array);
XDELETEVEC (expr_array);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment