freeMagic1() idiom insertion at all sites reported by static code analysis

This commit is contained in:
Darryl L. Miles
2025-12-19 09:31:58 -05:00
committed by R. Timothy Edwards
parent c74215ad55
commit 9489b23985
75 changed files with 621 additions and 230 deletions
+6 -2
View File
@@ -216,10 +216,12 @@ PlotVersTechInit()
{
VersatecStyle *style;
free_magic1_t mm1 = freeMagic1_init();
for (style = plotVersStyles; style != NULL; style = style->vs_next)
{
freeMagic((char *) style);
freeMagic1(&mm1, (char *) style);
}
freeMagic1_end(&mm1);
plotVersStyles = NULL;
if (PlotVersPrinter == NULL)
@@ -267,10 +269,12 @@ PlotColorVersTechInit()
{
VersatecStyle *style;
free_magic1_t mm1 = freeMagic1_init();
for (style = plotColorVersStyles; style != NULL; style = style->vs_next)
{
freeMagic((char *) style);
freeMagic1(&mm1, (char *) style);
}
freeMagic1_end(&mm1);
plotColorVersStyles = NULL;
if (PlotVersPrinter == NULL)