Fix memory leaks in vvp and change vvp T_STRING token to be new based.

This patch fixes a bunch of memory leaks in vvp and converts the
T_STRING lexical token to be new based. There are still two
known leaks that I need to find a way to fix and likely some
unknown leaks that still need to be found and fixed.
This commit is contained in:
Cary R
2009-01-13 10:53:23 -08:00
committed by Stephen Williams
parent 8ca3ea2e83
commit c2605a5c9b
14 changed files with 68 additions and 56 deletions
+4 -4
View File
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2007-2008 Stephen Williams ([email protected])
* Copyright (c) 2007-2009 Stephen Williams ([email protected])
*
* This source code is free software; you can redistribute it
* and/or modify it in source code form under the terms of the GNU
@@ -938,7 +938,7 @@ void compile_var_array(char*label, char*name, int last, int first,
count_var_array_words += arr->array_count;
free(label);
free(name);
delete[] name;
}
void compile_real_array(char*label, char*name, int last, int first,
@@ -962,7 +962,7 @@ void compile_real_array(char*label, char*name, int last, int first,
count_real_array_words += arr->array_count;
free(label);
free(name);
delete[] name;
}
void compile_net_array(char*label, char*name, int last, int first)
@@ -976,7 +976,7 @@ void compile_net_array(char*label, char*name, int last, int first)
count_net_array_words += arr->array_count;
free(label);
free(name);
delete[] name;
}
class vvp_fun_arrayport : public vvp_net_fun_t {