Avoid getenv() - dlsym() - calloc() - getenv() race