Fix a memory leak in ivlpp.
The new VHDL strings need to be freed to make valgrind happy.
This commit is contained in:
parent
0bad7bc337
commit
e22c692656
10
ivlpp/main.c
10
ivlpp/main.c
|
|
@ -1,5 +1,5 @@
|
||||||
const char COPYRIGHT[] =
|
const char COPYRIGHT[] =
|
||||||
"Copyright (c) 1999-2010 Stephen Williams (steve@icarus.com)";
|
"Copyright (c) 1999-2011 Stephen Williams (steve@icarus.com)";
|
||||||
/*
|
/*
|
||||||
* This source code is free software; you can redistribute it
|
* This source code is free software; you can redistribute it
|
||||||
* and/or modify it in source code form under the terms of the GNU
|
* and/or modify it in source code form under the terms of the GNU
|
||||||
|
|
@ -457,6 +457,14 @@ int main(int argc, char*argv[])
|
||||||
}
|
}
|
||||||
free(include_dir);
|
free(include_dir);
|
||||||
|
|
||||||
|
/* Free the VHDL library directories, the path and work directory. */
|
||||||
|
for (lp = 0; lp < vhdlpp_libdir_cnt; lp += 1) {
|
||||||
|
free(vhdlpp_libdir[lp]);
|
||||||
|
}
|
||||||
|
free(vhdlpp_libdir);
|
||||||
|
free(vhdlpp_path);
|
||||||
|
free(vhdlpp_work);
|
||||||
|
|
||||||
free_macros();
|
free_macros();
|
||||||
|
|
||||||
return error_count;
|
return error_count;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue