Fix memory leak found with valgrind

This commit is contained in:
Cary R 2015-12-13 14:08:25 -08:00
parent 24d1f49f3e
commit aacb4df1dd
1 changed files with 1 additions and 0 deletions

View File

@ -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