summaryrefslogtreecommitdiffstats
path: root/src/core/deployment
diff options
context:
space:
mode:
authorGravatar nandika2012-12-28 12:45:52 +0000
committerGravatar nandika2012-12-28 12:45:52 +0000
commit8ae0650416e952b655a7e73d003e399dc4e827dc (patch)
tree38c97cc6a91f97f06a020b9b57fedceabde98dae /src/core/deployment
parentc825ee42605a9a6bb5cdbae682143dfd86013439 (diff)
downloadaxis2c-8ae0650416e952b655a7e73d003e399dc4e827dc.tar.gz
axis2c-8ae0650416e952b655a7e73d003e399dc4e827dc.tar.bz2
Fixed memory leak
git-svn-id: http://svn.apache.org/repos/asf/axis/axis2/c/core/trunk@1426481 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/core/deployment')
-rw-r--r--src/core/deployment/dep_engine.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/core/deployment/dep_engine.c b/src/core/deployment/dep_engine.c
index de03d99..2ccbb83 100644
--- a/src/core/deployment/dep_engine.c
+++ b/src/core/deployment/dep_engine.c
@@ -565,6 +565,15 @@ axis2_dep_engine_free(
axis2_repos_listener_free(dep_engine->repos_listener, env);
}
+ if(dep_engine->module_dir)
+ {
+ AXIS2_FREE(env->allocator, dep_engine->module_dir);
+ }
+ if(dep_engine->svc_dir)
+ {
+ AXIS2_FREE(env->allocator, dep_engine->svc_dir);
+ }
+
if(dep_engine)
{
AXIS2_FREE(env->allocator, dep_engine);
@@ -1978,7 +1987,7 @@ axis2_dep_engine_set_svc_and_module_dir_path(
dirpath = (axis2_char_t *)axutil_param_get_value(dep_param, env);
if(dirpath)
{
- dep_engine->module_dir = dirpath;
+ dep_engine->module_dir = axutil_strdup(env, dirpath);
dirpath = NULL;
}
}
@@ -1990,7 +1999,7 @@ axis2_dep_engine_set_svc_and_module_dir_path(
dirpath = (axis2_char_t *)axutil_param_get_value(dep_param, env);
if(dirpath)
{
- dep_engine->svc_dir = dirpath;
+ dep_engine->svc_dir = axutil_strdup(env, dirpath);
dirpath = NULL;
}
}