1570af302Sopenharmony_ci#ifndef HOOK_ENABLE 2570af302Sopenharmony_ci#include <stdlib.h> 3570af302Sopenharmony_ci 4570af302Sopenharmony_ci#ifdef USE_JEMALLOC 5570af302Sopenharmony_ciextern void je_free(void* p); 6570af302Sopenharmony_ci#endif 7570af302Sopenharmony_ci 8570af302Sopenharmony_civoid free(void *p) 9570af302Sopenharmony_ci{ 10570af302Sopenharmony_ci#ifdef USE_JEMALLOC 11570af302Sopenharmony_ci return je_free(p); 12570af302Sopenharmony_ci#endif 13570af302Sopenharmony_ci __libc_free(p); 14570af302Sopenharmony_ci} 15570af302Sopenharmony_ci#endif