mirror of
https://github.com/steveicarus/iverilog.git
synced 2026-08-22 13:57:18 +02:00
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:
+4
-4
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user