mirror of
https://github.com/steveicarus/iverilog.git
synced 2026-08-22 05:47:31 +02:00
Fix memory leak found with valgrind
This commit is contained in:
@@ -157,6 +157,7 @@ void verify_version(char*ivl_ver, char*commit)
|
|||||||
rc = sscanf(ivl_ver, "%d.%d %127s", &file_major, &file_minor, file_extra);
|
rc = sscanf(ivl_ver, "%d.%d %127s", &file_major, &file_minor, file_extra);
|
||||||
file_minor2 = 0;
|
file_minor2 = 0;
|
||||||
}
|
}
|
||||||
|
delete[] ivl_ver;
|
||||||
|
|
||||||
// If this was the old format, the file_major will be 0. In
|
// If this was the old format, the file_major will be 0. In
|
||||||
// this case it is not really what we meant, so convert to the
|
// this case it is not really what we meant, so convert to the
|
||||||
|
|||||||
Reference in New Issue
Block a user