mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2024-11-24 04:29:49 +00:00
* ada-exp.y (write_object_renaming): Use malloc instead of
xmalloc. * p-exp.y (pop_current_type): Use free instead of xfree.
This commit is contained in:
parent
0775829945
commit
bbe2ba601d
@ -1,3 +1,9 @@
|
||||
2008-10-25 Pedro Alves <pedro@codesourcery.com>
|
||||
|
||||
* ada-exp.y (write_object_renaming): Use malloc instead of
|
||||
xmalloc.
|
||||
* p-exp.y (pop_current_type): Use free instead of xfree.
|
||||
|
||||
2008-10-24 Pedro Alves <pedro@codesourcery.com>
|
||||
|
||||
* fork-child.c (startup_inferior): Only set threads not-executing
|
||||
|
@ -987,7 +987,7 @@ write_object_renaming (struct block *orig_left_context,
|
||||
if (end == NULL)
|
||||
end = renaming_expr + strlen (renaming_expr);
|
||||
field_name.length = end - renaming_expr;
|
||||
field_name.ptr = xmalloc (end - renaming_expr + 1);
|
||||
field_name.ptr = malloc (end - renaming_expr + 1);
|
||||
strncpy (field_name.ptr, renaming_expr, end - renaming_expr);
|
||||
field_name.ptr[end - renaming_expr] = '\000';
|
||||
renaming_expr = end;
|
||||
|
@ -1023,7 +1023,7 @@ pop_current_type (void)
|
||||
{
|
||||
current_type = tp->stored;
|
||||
tp_top = tp->next;
|
||||
xfree (tp);
|
||||
free (tp);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user