2010-10-06 Mikael Morin <mikael@gcc.gnu.org>
* simplify.c (gfc_simplify_size): Clear temporary mpz int before
returning.
From-SVN: r165036
+2010-10-06 Mikael Morin <mikael@gcc.gnu.org>
+
+ * simplify.c (gfc_simplify_size): Clear temporary mpz int before
+ returning.
+
2010-10-06 Mikael Morin <mikael@gcc.gnu.org>
* resolve.c (add_dt_to_dt_list): Remove unneeded if.
gfc_simplify_size (gfc_expr *array, gfc_expr *dim, gfc_expr *kind)
{
mpz_t size;
+ gfc_expr *return_value;
int d;
int k = get_kind (BT_INTEGER, kind, "SIZE", gfc_default_integer_kind);
return NULL;
}
- return gfc_get_int_expr (k, &array->where, mpz_get_si (size));
+ return_value = gfc_get_int_expr (k, &array->where, mpz_get_si (size));
+ mpz_clear (size);
+ return return_value;
}