mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2025-04-01 19:51:40 +00:00
* symtab.c (expand_line_sal): Fix a memory leak.
This commit is contained in:
parent
b432ffe3e2
commit
db009c8a0a
@ -1,3 +1,7 @@
|
||||
2008-07-13 Hui Zhu <teawater@gmail.com>
|
||||
|
||||
* symtab.c (expand_line_sal): Fix a memory leak.
|
||||
|
||||
2008-07-13 Pedro Alves <pedro@codesourcery.com>
|
||||
|
||||
* utils.c (struct continuation): Define as inheriting struct
|
||||
|
@ -4456,8 +4456,8 @@ expand_line_sal (struct symtab_and_line sal)
|
||||
blocks -- for each PC found above we see if there are other PCs
|
||||
that are in the same block. If yes, the other PCs are filtered out. */
|
||||
|
||||
filter = xmalloc (ret.nelts * sizeof (int));
|
||||
blocks = xmalloc (ret.nelts * sizeof (struct block *));
|
||||
filter = alloca (ret.nelts * sizeof (int));
|
||||
blocks = alloca (ret.nelts * sizeof (struct block *));
|
||||
for (i = 0; i < ret.nelts; ++i)
|
||||
{
|
||||
filter[i] = 1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user