apr_env_get should pstrdup the value it returns - as it does according to its documentation.
Index: misc/unix/env.c
===================================================================
--- misc/unix/env.c (revision 1159605)
+++ misc/unix/env.c (working copy)
@@ -37,7 +37,7 @@
char *val = getenv(envvar);
if (!val)
return APR_ENOENT;
- *value = val;
+ *value = apr_pstrdup(pool, val);
return APR_SUCCESS;
#else
--
Ignaz
