Use stat_alloc in plugin

We never free the tv array.

	* plugin.c (plugin_load_plugins): Use stat_alloc.
This commit is contained in:
Alan Modra
2025-01-16 22:57:43 +10:30
parent 8c7653ab09
commit f7b0dfe030

View File

@@ -1120,7 +1120,7 @@ plugin_load_plugins (void)
}
/* 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);
/* Pass over plugins again, activating them. */