mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-05 23:23:09 +00:00
Use stat_alloc in plugin
We never free the tv array. * plugin.c (plugin_load_plugins): Use stat_alloc.
This commit is contained in:
@@ -1120,7 +1120,7 @@ plugin_load_plugins (void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Allocate tv array and initialise constant part. */
|
/* Allocate tv array and initialise constant part. */
|
||||||
my_tv = xmalloc ((max_args + 1 + tv_header_size) * sizeof *my_tv);
|
my_tv = stat_alloc ((max_args + 1 + tv_header_size) * sizeof (*my_tv));
|
||||||
set_tv_header (my_tv);
|
set_tv_header (my_tv);
|
||||||
|
|
||||||
/* Pass over plugins again, activating them. */
|
/* Pass over plugins again, activating them. */
|
||||||
|
|||||||
Reference in New Issue
Block a user