Cast away const to avoid a warning when cleaning up const data.

When cleaning up the vcd_list make sure to remove the const
qualifier before freeing the ident. This is created with strdup.
This commit is contained in:
Cary R 2009-02-03 09:19:31 -08:00 committed by Stephen Williams
parent ec1ca8509d
commit b959f473dc
1 changed files with 1 additions and 1 deletions

View File

@ -261,7 +261,7 @@ static PLI_INT32 finish_cb(p_cb_data cause)
for (cur = vcd_list ; cur ; cur = next) {
next = cur->next;
free(cur->ident);
free((char *)cur->ident);
free(cur);
}
vcd_names_delete(&vcd_tab);