A format is a vpiStringVal not vpiStringVar, fix memory leak

This commit is contained in:
Cary R 2015-12-13 18:56:06 -08:00
parent aacb4df1dd
commit 45fc06cf11
1 changed files with 1 additions and 1 deletions

View File

@ -684,7 +684,7 @@ static PLI_INT32 ivlh_read_calltf(ICARUS_VPI_CONST PLI_BYTE8*name)
vpi_put_value(varh, &val, 0, vpiNoDelay);
/* Clean up */
if(val.format == vpiStringVar)
if(val.format == vpiStringVal)
free(val.value.str);
else if(val.format == vpiVectorVal)
free(val.value.vector);