aboutsummaryrefslogtreecommitdiff
path: root/libtcc.c
diff options
context:
space:
mode:
authorHenry Kroll III <henry@comptune.com>2010-04-24 03:28:54 -0700
committerHenry Kroll III <henry@comptune.com>2010-04-24 03:28:54 -0700
commit2ab42855cb2e1501fcc892f3159f9a957b4f538f (patch)
tree2a346a62842cbea0b4a5a8f2247b2ce9c64fc2af /libtcc.c
parenta4ed587f6104ce2e8cb75ef9900bf17644f428bf (diff)
downloadtinycc-2ab42855cb2e1501fcc892f3159f9a957b4f538f.tar.gz
tinycc-2ab42855cb2e1501fcc892f3159f9a957b4f538f.tar.bz2
make --with-selinux work with libtcc, too
Diffstat (limited to 'libtcc.c')
-rw-r--r--libtcc.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libtcc.c b/libtcc.c
index 62c252d..f0da4de 100644
--- a/libtcc.c
+++ b/libtcc.c
@@ -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);
}