diff options
| author | Henry Kroll III <henry@comptune.com> | 2010-04-24 03:28:54 -0700 |
|---|---|---|
| committer | Henry Kroll III <henry@comptune.com> | 2010-04-24 03:28:54 -0700 |
| commit | 2ab42855cb2e1501fcc892f3159f9a957b4f538f (patch) | |
| tree | 2a346a62842cbea0b4a5a8f2247b2ce9c64fc2af /libtcc.c | |
| parent | a4ed587f6104ce2e8cb75ef9900bf17644f428bf (diff) | |
| download | tinycc-2ab42855cb2e1501fcc892f3159f9a957b4f538f.tar.gz tinycc-2ab42855cb2e1501fcc892f3159f9a957b4f538f.tar.bz2 | |
make --with-selinux work with libtcc, too
Diffstat (limited to 'libtcc.c')
| -rw-r--r-- | libtcc.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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); } |
