X-Git-Url: https://git.saurik.com/apple/dyld.git/blobdiff_plain/df9d6cf7fb01f4e3d4128fe7a687984fe0b45584..17a1d27dac9f840f614dcca486e07a34f9380394:/src/dyldNew.cpp diff --git a/src/dyldNew.cpp b/src/dyldNew.cpp index ebccc77..cf64f58 100644 --- a/src/dyldNew.cpp +++ b/src/dyldNew.cpp @@ -62,7 +62,7 @@ static dyld_static_pool* currentPool = &initialPool; void* malloc(size_t size) { - if ( dyld::gLibSystemHelpers != NULL) { + if ( (dyld::gLibSystemHelpers != NULL) && dyld::gProcessInfo->libSystemInitialized ) { void* p = dyld::gLibSystemHelpers->malloc(size); //dyld::log("malloc(%lu) => %p from libSystem\n", size, p); return p;