ResMain.c: use-after-free: simple reorder of statements
This commit is contained in:
parent
48708c52a4
commit
92c4fc35db
|
|
@ -1087,11 +1087,11 @@ ResExtractNet(node, goodies, cellname)
|
||||||
resMakeDevFunc, (ClientData)thisDev);
|
resMakeDevFunc, (ClientData)thisDev);
|
||||||
if (result == 0)
|
if (result == 0)
|
||||||
{
|
{
|
||||||
freeMagic(thisDev);
|
|
||||||
TxError("No device of type %s found at location %d,%d\n",
|
TxError("No device of type %s found at location %d,%d\n",
|
||||||
DBTypeLongNameTbl[thisDev->type],
|
DBTypeLongNameTbl[thisDev->type],
|
||||||
tptr->thisDev->location.p_x,
|
tptr->thisDev->location.p_x,
|
||||||
tptr->thisDev->location.p_y);
|
tptr->thisDev->location.p_y);
|
||||||
|
freeMagic(thisDev);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
thisDev->nextDev = DevTiles;
|
thisDev->nextDev = DevTiles;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue