summaryrefslogtreecommitdiff
path: root/plugins/itanium
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/itanium')
-rw-r--r--plugins/itanium/component.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/itanium/component.c b/plugins/itanium/component.c
index 3baad57..25ea175 100644
--- a/plugins/itanium/component.c
+++ b/plugins/itanium/component.c
@@ -1407,6 +1407,7 @@ GDataType *itd_translate_component_to_type(const itanium_component *comp, Routin
GDataType *arg; /* Argument de prototype */
GDataType *members; /* Type de membres de tableau */
GDataType *param; /* Paramètre de gabarit */
+ char *value; /* Valeur quelconque exprimée */
/* Pour GCC !? */
result = NULL;
@@ -1855,7 +1856,9 @@ GDataType *itd_translate_component_to_type(const itanium_component *comp, Routin
break;
case ICT_OPERATED_EXPRESSION:
- result = g_expr_type_new(itd_translate_component(comp, NULL));
+ value = itd_translate_component(comp, NULL);
+ result = g_expr_type_new(value);
+ free(value);
break;
case ICT_STD_SUBST: