mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-08-30 09:58:55 +02:00
freeMagic1() idiom insertion at all sites reported by static code analysis
This commit is contained in:
+6
-2
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user