aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTucker Evans <tuckerevans24@gmail.com>2019-09-30 16:48:45 -0400
committerTucker Evans <tuckerevans24@gmail.com>2019-10-04 13:17:51 -0400
commitef5b237cd353c23d0cd2494d1e2bcd5cde7146ca (patch)
tree99126eb73553ff4a3ebb47923aaaa756e204d21d
parent4c71083b074b5af0493d540bf8b971b2dc07311a (diff)
Fix make sure argv pointer is initialized to NULL
-rw-r--r--sem_check.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sem_check.c b/sem_check.c
index e30d8c5..4c8a0d3 100644
--- a/sem_check.c
+++ b/sem_check.c
@@ -205,6 +205,8 @@ ptree *t;
/*TODO add info on which argument causes error*/
yyerror("Incorrect types in fuction arguments");
+ free(argv);
+ argv = NULL;
}
int func_ret(t, name)