Commit b584fea2 by Alan Mishchenko

Bug fix in the mapper: using an object after it is deleted.

parent aede5026
...@@ -215,11 +215,11 @@ Vec_Int_t * Amap_LibDeriveGatePerm_rec( Amap_Lib_t * pLib, Kit_DsdNtk_t * pNtk, ...@@ -215,11 +215,11 @@ Vec_Int_t * Amap_LibDeriveGatePerm_rec( Amap_Lib_t * pLib, Kit_DsdNtk_t * pNtk,
break; break;
} }
} }
Vec_IntFree( vNodFanin );
Vec_IntFree( vDsdLits );
// assert( iDsdLit == Vec_IntSize(vDsdLits) ); // assert( iDsdLit == Vec_IntSize(vDsdLits) );
if ( iDsdLit != Vec_IntSize(vDsdLits) ) if ( iDsdLit != Vec_IntSize(vDsdLits) )
Vec_IntFreeP( &vPerm ); Vec_IntFreeP( &vPerm );
Vec_IntFree( vNodFanin );
Vec_IntFree( vDsdLits );
return vPerm; return vPerm;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment