aboutsummaryrefslogtreecommitdiff
path: root/scope.c
diff options
context:
space:
mode:
authorTucker Evans <tuckerevans24@gmail.com>2019-08-03 17:45:09 -0400
committerTucker Evans <tuckerevans24@gmail.com>2019-08-03 17:45:09 -0400
commit8cd6be853b61798a5fd4114292c62bb9384497bc (patch)
treeb9751c73f4954e55ca39d6acbea30ca56a2af5cd /scope.c
parent51c0c989e7beb784c772dd8328f51fb6443e751c (diff)
Fix double free error
Diffstat (limited to 'scope.c')
-rw-r--r--scope.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/scope.c b/scope.c
index 11a9c5b..6706765 100644
--- a/scope.c
+++ b/scope.c
@@ -35,6 +35,7 @@ scope *s;
}
free(s);
+ s = NULL;
}
/*Copied from Compilers, Aho*/