summaryrefslogtreecommitdiffstats
path: root/runtime/msg.c
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/msg.c')
-rw-r--r--runtime/msg.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/runtime/msg.c b/runtime/msg.c
index 3a48fc09..12246777 100644
--- a/runtime/msg.c
+++ b/runtime/msg.c
@@ -4148,7 +4148,10 @@ void
msgPropDescrDestruct(msgPropDescr_t *pProp)
{
if(pProp != NULL) {
- free(pProp->name);
+ if(pProp->id == PROP_CEE ||
+ pProp->id == PROP_LOCAL_VAR ||
+ pProp->id == PROP_GLOBAL_VAR)
+ free(pProp->name);
}
}