* partial-stab.h (case N_FUN: case 'f':, case N_FUN: case 'F':)
Fix memory leak.
This commit is contained in:
parent
531017dfa4
commit
d0bbfec7b6
@ -1,5 +1,8 @@
|
|||||||
2001-06-01 Jim Blandy <jimb@redhat.com>
|
2001-06-01 Jim Blandy <jimb@redhat.com>
|
||||||
|
|
||||||
|
* partial-stab.h (case N_FUN: case 'f':, case N_FUN: case 'F':)
|
||||||
|
Fix memory leak.
|
||||||
|
|
||||||
* partial-stab.h: New complaint: function_outside_compilation_unit.
|
* partial-stab.h: New complaint: function_outside_compilation_unit.
|
||||||
(case N_FUN: case 'f':, case N_FUN: case 'F':): If pst is zero,
|
(case N_FUN: case 'f':, case N_FUN: case 'F':): If pst is zero,
|
||||||
complain, and don't try to set pst's start address.
|
complain, and don't try to set pst's start address.
|
||||||
|
@ -586,6 +586,7 @@ switch (CUR_SYMBOL_TYPE)
|
|||||||
memcpy (name, namestring, name_len);
|
memcpy (name, namestring, name_len);
|
||||||
name[name_len] = '\0';
|
name[name_len] = '\0';
|
||||||
complain (&function_outside_compilation_unit, name);
|
complain (&function_outside_compilation_unit, name);
|
||||||
|
xfree (name);
|
||||||
}
|
}
|
||||||
CUR_SYMBOL_VALUE += ANOFFSET (objfile->section_offsets, SECT_OFF_TEXT (objfile));
|
CUR_SYMBOL_VALUE += ANOFFSET (objfile->section_offsets, SECT_OFF_TEXT (objfile));
|
||||||
#ifdef DBXREAD_ONLY
|
#ifdef DBXREAD_ONLY
|
||||||
@ -640,6 +641,7 @@ switch (CUR_SYMBOL_TYPE)
|
|||||||
memcpy (name, namestring, name_len);
|
memcpy (name, namestring, name_len);
|
||||||
name[name_len] = '\0';
|
name[name_len] = '\0';
|
||||||
complain (&function_outside_compilation_unit, name);
|
complain (&function_outside_compilation_unit, name);
|
||||||
|
xfree (name);
|
||||||
}
|
}
|
||||||
CUR_SYMBOL_VALUE += ANOFFSET (objfile->section_offsets, SECT_OFF_TEXT (objfile));
|
CUR_SYMBOL_VALUE += ANOFFSET (objfile->section_offsets, SECT_OFF_TEXT (objfile));
|
||||||
#ifdef DBXREAD_ONLY
|
#ifdef DBXREAD_ONLY
|
||||||
|
Loading…
Reference in New Issue
Block a user