diff options
author | Jim Blandy <jimb@codesourcery.com> | 2001-06-01 21:17:50 +0000 |
---|---|---|
committer | Jim Blandy <jimb@codesourcery.com> | 2001-06-01 21:17:50 +0000 |
commit | d0bbfec7b60c10ff4bda54e7a4b72233c5ad1fb2 (patch) | |
tree | 96dd3059ce33a5a03fffe4d653641f3995cec476 /gdb/partial-stab.h | |
parent | 531017dfa40f63d3ff26cb80e0962a68eedbbccf (diff) | |
download | gdb-d0bbfec7b60c10ff4bda54e7a4b72233c5ad1fb2.zip gdb-d0bbfec7b60c10ff4bda54e7a4b72233c5ad1fb2.tar.gz gdb-d0bbfec7b60c10ff4bda54e7a4b72233c5ad1fb2.tar.bz2 |
* partial-stab.h (case N_FUN: case 'f':, case N_FUN: case 'F':)
Fix memory leak.
Diffstat (limited to 'gdb/partial-stab.h')
-rw-r--r-- | gdb/partial-stab.h | 2 |
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 |