From 2ab42855cb2e1501fcc892f3159f9a957b4f538f Mon Sep 17 00:00:00 2001 From: Henry Kroll III Date: Sat, 24 Apr 2010 03:28:54 -0700 Subject: make --with-selinux work with libtcc, too --- libtcc.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'libtcc.c') 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); } -- cgit v1.3.1