Noticed by: Dancie Reeves <danny_reeves@hotmail.com>
svn path=/trunk/yasm/; revision=1630
static void
nasm_preproc_destroy(yasm_preproc *preproc)
{
+ yasm_preproc_nasm *preproc_nasm = (yasm_preproc_nasm *)preproc;
nasmpp.cleanup(0);
+ if (preproc_nasm->file_name)
+ yasm_xfree(preproc_nasm->file_name);
yasm_xfree(preproc);
if (preproc_deps)
yasm_xfree(preproc_deps);
}
preproc_nasm->prior_linnum = linnum;
}
- if (preproc_nasm->file_name) {
- yasm_xfree(preproc_nasm->file_name);
- preproc_nasm->file_name = NULL;
- }
}
n = preproc_nasm->lineleft<max_size?preproc_nasm->lineleft:max_size;