initialized not allocated, so the function doesn't actually free the
provided pointer.
svn path=/trunk/yasm/; revision=1715
bc_data_destroy(void *contents)
{
bytecode_data *bc_data = (bytecode_data *)contents;
- yasm_dvs_destroy(&bc_data->datahead);
+ yasm_dvs_delete(&bc_data->datahead);
yasm_xfree(contents);
}
}
void
-yasm_dvs_destroy(yasm_datavalhead *headp)
+yasm_dvs_delete(yasm_datavalhead *headp)
{
yasm_dataval *cur, *next;
/** Delete (free allocated memory for) a list of data values.
* \param headp list of data values
*/
-void yasm_dvs_destroy(yasm_datavalhead *headp);
+void yasm_dvs_delete(yasm_datavalhead *headp);
/** Add data value to the end of a list of data values.
* \note Does not make a copy of the data value; so don't pass this function