summaryrefslogtreecommitdiff
path: root/gcc/fortran/st.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/fortran/st.c')
-rw-r--r--gcc/fortran/st.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/fortran/st.c b/gcc/fortran/st.c
index abe7b94865c..ba5656b24d5 100644
--- a/gcc/fortran/st.c
+++ b/gcc/fortran/st.c
@@ -48,7 +48,7 @@ gfc_get_code (void)
{
gfc_code *c;
- c = gfc_getmem (sizeof (gfc_code));
+ c = XCNEW (gfc_code);
c->loc = gfc_current_locus;
return c;
}