summaryrefslogtreecommitdiffstats
path: root/src/bdd/cudd/cuddExport.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bdd/cudd/cuddExport.c')
-rw-r--r--src/bdd/cudd/cuddExport.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/bdd/cudd/cuddExport.c b/src/bdd/cudd/cuddExport.c
index 3b2e989d..c0cac4ec 100644
--- a/src/bdd/cudd/cuddExport.c
+++ b/src/bdd/cudd/cuddExport.c
@@ -780,6 +780,7 @@ Cudd_DumpDDcal(
if (diff <= mask) break;
}
st_free_table(visited);
+ visited = NULL;
/* Build a bit array with the support of f. */
sorted = ABC_ALLOC(int,nvars);
@@ -851,7 +852,8 @@ Cudd_DumpDDcal(
retval = fprintf(fp, "]\n");
if (retval == EOF) goto failure;
- st_free_table(visited);
+ if ( visited )
+ st_free_table(visited);
return(1);
failure: