summaryrefslogtreecommitdiffstats
path: root/src/map
diff options
context:
space:
mode:
authorAlan Mishchenko <alanmi@berkeley.edu>2017-01-08 03:10:42 +0700
committerAlan Mishchenko <alanmi@berkeley.edu>2017-01-08 03:10:42 +0700
commit8ad3d6bec8ff89c8d742869cff05735d6f023fc8 (patch)
tree11525eb31e52ca494672a93f3a18d44b369b0bcc /src/map
parenta2813847318bf22e0c36c7141047eaa82657f60d (diff)
downloadabc-8ad3d6bec8ff89c8d742869cff05735d6f023fc8.tar.gz
abc-8ad3d6bec8ff89c8d742869cff05735d6f023fc8.tar.bz2
abc-8ad3d6bec8ff89c8d742869cff05735d6f023fc8.zip
Bug fixes by Clifford Wolf.
Diffstat (limited to 'src/map')
-rw-r--r--src/map/if/ifLibLut.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/map/if/ifLibLut.c b/src/map/if/ifLibLut.c
index 26fa137b..1033cc1f 100644
--- a/src/map/if/ifLibLut.c
+++ b/src/map/if/ifLibLut.c
@@ -75,6 +75,7 @@ If_LibLut_t * If_LibLutRead( char * FileName )
Abc_Print( 1, "Error in the LUT library file \"%s\".\n", FileName );
ABC_FREE( p->pName );
ABC_FREE( p );
+ fclose( pFile );
return NULL;
}
@@ -93,6 +94,7 @@ If_LibLut_t * If_LibLutRead( char * FileName )
ABC_FREE( p->pName );
ABC_FREE( p );
Abc_Print( 1, "LUT %d has too many pins (%d). Max allowed is %d.\n", i, k, i );
+ fclose( pFile );
return NULL;
}
@@ -105,6 +107,7 @@ If_LibLut_t * If_LibLutRead( char * FileName )
ABC_FREE( p->pName );
ABC_FREE( p );
Abc_Print( 1, "Skipping LUTs of size more than %d.\n", i );
+ fclose( pFile );
return NULL;
}
i++;
@@ -136,6 +139,7 @@ If_LibLut_t * If_LibLutRead( char * FileName )
}
}
+ fclose( pFile );
return p;
}