make --with-selinux work with libtcc, too

This commit is contained in:
Henry Kroll III
2010-04-24 03:28:54 -07:00
parent a4ed587f61
commit 2ab42855cb
3 changed files with 35 additions and 34 deletions

View File

@ -1038,7 +1038,12 @@ LIBTCCAPI void tcc_delete(TCCState *s1)
dynarray_reset(&s1->sysinclude_paths, &s1->nb_sysinclude_paths);
tcc_free(s1->tcc_lib_path);
#ifdef HAVE_SELINUX
munmap (s1->write_mem, s1->mem_size);
munmap (s1->runtime_mem, s1->mem_size);
#else
tcc_free(s1->runtime_mem);
#endif
tcc_free(s1);
}