mirror of
https://github.com/YosysHQ/abc.git
synced 2026-09-08 11:53:16 +02:00
Fixed a number of small bugs and memory leaks.
This commit is contained in:
@@ -58,6 +58,7 @@ int CmdCommandLoad( Abc_Frame_t * pAbc, int argc, char ** argv )
|
||||
// check if there is the binary
|
||||
if ( (pFile = fopen( Vec_StrArray(vCommand), "r" )) == NULL )
|
||||
{
|
||||
Vec_StrFree( vCommand );
|
||||
Abc_Print( -1, "Cannot run the binary \"%s\".\n\n", Vec_StrArray(vCommand) );
|
||||
return 1;
|
||||
}
|
||||
@@ -73,10 +74,12 @@ int CmdCommandLoad( Abc_Frame_t * pAbc, int argc, char ** argv )
|
||||
// run the command line
|
||||
if ( Util_SignalSystem( Vec_StrArray(vCommand) ) )
|
||||
{
|
||||
Vec_StrFree( vCommand );
|
||||
Abc_Print( -1, "The following command has returned non-zero exit status:\n" );
|
||||
Abc_Print( -1, "\"%s\"\n", Vec_StrArray(vCommand) );
|
||||
return 1;
|
||||
}
|
||||
Vec_StrFree( vCommand );
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user