mirror of https://github.com/YosysHQ/abc.git
Memory leak.
This commit is contained in:
parent
d7dfd06ca1
commit
fbf70c5fbb
|
|
@ -136,8 +136,11 @@ Abc_Ntk_t * Abc_NtkBddToMuxes( Abc_Ntk_t * pNtk, int fGlobal, int Limit )
|
||||||
if ( fGlobal )
|
if ( fGlobal )
|
||||||
{
|
{
|
||||||
if ( !Abc_NtkBddToMuxesPerformGlo( pNtk, pNtkNew, Limit ) )
|
if ( !Abc_NtkBddToMuxesPerformGlo( pNtk, pNtkNew, Limit ) )
|
||||||
|
{
|
||||||
|
Abc_NtkDelete( pNtkNew );
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Abc_NtkBddToMuxesPerform( pNtk, pNtkNew );
|
Abc_NtkBddToMuxesPerform( pNtk, pNtkNew );
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue