diff --- vm/vmcore/src/init/properties.cpp | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/vm/vmcore/src/init/properties.cpp b/vm/vmcore/src/init/properties.cpp index 7e0aac3..c26be48 100644 --- a/vm/vmcore/src/init/properties.cpp +++ b/vm/vmcore/src/init/properties.cpp @@ -15,6 +15,8 @@ * limitations under the License. */ +#include + #define LOG_DOMAIN "init.properties" #include "cxxlog.h" #include "properties.h" @@ -52,7 +54,7 @@ void Properties::set(const char * key, c LDIE(11, "Cannot lock properties table"); } PropValue* val = (PropValue*) apr_hash_get(hashtables_array, (const void*) key, APR_HASH_KEY_STRING); - apr_hash_set(hashtables_array, (const void*) strdup(key), APR_HASH_KEY_STRING, (const void*) new PropValue(value)); + apr_hash_set(hashtables_array, apr_pstrdup(local_ht_pool, key), APR_HASH_KEY_STRING, (const void*) new PropValue(value)); if (val != NULL) { delete(val); }