mirror of
https://github.com/yasm/yasm
synced 2026-08-26 22:26:05 -04:00
Don't treat xfree as a real function (taking its address), as this doesn't work
if dmalloc is enabled. svn path=/trunk/yasm/; revision=770
This commit is contained in:
parent
53f6123eaf
commit
3adada2a00
2 changed files with 14 additions and 2 deletions
|
|
@ -393,6 +393,12 @@ bin_objfmt_sections_switch(sectionhead *headp, valparamhead *valparams,
|
|||
return NULL;
|
||||
}
|
||||
|
||||
static void
|
||||
bin_objfmt_section_data_delete(/*@only@*/ void *d)
|
||||
{
|
||||
xfree(d);
|
||||
}
|
||||
|
||||
static void
|
||||
bin_objfmt_common_declare(/*@unused@*/ symrec *sym, /*@only@*/ expr *size,
|
||||
/*@unused@*/ /*@null@*/
|
||||
|
|
@ -454,7 +460,7 @@ objfmt yasm_bin_LTX_objfmt = {
|
|||
bin_objfmt_output,
|
||||
bin_objfmt_cleanup,
|
||||
bin_objfmt_sections_switch,
|
||||
xfree,
|
||||
bin_objfmt_section_data_delete,
|
||||
bin_objfmt_section_data_print,
|
||||
NULL /*bin_objfmt_extern_declare*/,
|
||||
NULL /*bin_objfmt_global_declare*/,
|
||||
|
|
|
|||
|
|
@ -393,6 +393,12 @@ bin_objfmt_sections_switch(sectionhead *headp, valparamhead *valparams,
|
|||
return NULL;
|
||||
}
|
||||
|
||||
static void
|
||||
bin_objfmt_section_data_delete(/*@only@*/ void *d)
|
||||
{
|
||||
xfree(d);
|
||||
}
|
||||
|
||||
static void
|
||||
bin_objfmt_common_declare(/*@unused@*/ symrec *sym, /*@only@*/ expr *size,
|
||||
/*@unused@*/ /*@null@*/
|
||||
|
|
@ -454,7 +460,7 @@ objfmt yasm_bin_LTX_objfmt = {
|
|||
bin_objfmt_output,
|
||||
bin_objfmt_cleanup,
|
||||
bin_objfmt_sections_switch,
|
||||
xfree,
|
||||
bin_objfmt_section_data_delete,
|
||||
bin_objfmt_section_data_print,
|
||||
NULL /*bin_objfmt_extern_declare*/,
|
||||
NULL /*bin_objfmt_global_declare*/,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue