aboutsummaryrefslogtreecommitdiff
path: root/gdb/partial-stab.h
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/partial-stab.h')
-rw-r--r--gdb/partial-stab.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/partial-stab.h b/gdb/partial-stab.h
index d6c6fd5..ebedef7 100644
--- a/gdb/partial-stab.h
+++ b/gdb/partial-stab.h
@@ -586,6 +586,7 @@ switch (CUR_SYMBOL_TYPE)
memcpy (name, namestring, name_len);
name[name_len] = '\0';
complain (&function_outside_compilation_unit, name);
+ xfree (name);
}
CUR_SYMBOL_VALUE += ANOFFSET (objfile->section_offsets, SECT_OFF_TEXT (objfile));
#ifdef DBXREAD_ONLY
@@ -640,6 +641,7 @@ switch (CUR_SYMBOL_TYPE)
memcpy (name, namestring, name_len);
name[name_len] = '\0';
complain (&function_outside_compilation_unit, name);
+ xfree (name);
}
CUR_SYMBOL_VALUE += ANOFFSET (objfile->section_offsets, SECT_OFF_TEXT (objfile));
#ifdef DBXREAD_ONLY