aboutsummaryrefslogtreecommitdiffstats
path: root/src/libhydra/plugins/resolve/resolve_handler.c
diff options
context:
space:
mode:
authorMartin Willi <martin@revosec.ch>2011-04-21 13:21:26 +0200
committerMartin Willi <martin@revosec.ch>2011-04-21 13:35:31 +0200
commit5b0bcfb1fc4aabb6535db91e70f7f262328e664f (patch)
tree000c5588b5da0e498f74e251cd0e1aeaa6d597a9 /src/libhydra/plugins/resolve/resolve_handler.c
parentfdead26ffe1da8501a6ff5e0639a6f44c723e763 (diff)
downloadstrongswan-5b0bcfb1fc4aabb6535db91e70f7f262328e664f.tar.bz2
strongswan-5b0bcfb1fc4aabb6535db91e70f7f262328e664f.tar.xz
Revert alloc_str changes
Diffstat (limited to 'src/libhydra/plugins/resolve/resolve_handler.c')
-rw-r--r--src/libhydra/plugins/resolve/resolve_handler.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libhydra/plugins/resolve/resolve_handler.c b/src/libhydra/plugins/resolve/resolve_handler.c
index d16fec962..feb2fd05a 100644
--- a/src/libhydra/plugins/resolve/resolve_handler.c
+++ b/src/libhydra/plugins/resolve/resolve_handler.c
@@ -228,7 +228,6 @@ static enumerator_t* create_attribute_enumerator(private_resolve_handler_t *this
static void destroy(private_resolve_handler_t *this)
{
this->mutex->destroy(this->mutex);
- free(this->file);
free(this);
}
@@ -245,7 +244,7 @@ resolve_handler_t *resolve_handler_create()
this->public.destroy = (void(*)(resolve_handler_t*))destroy;
this->mutex = mutex_create(MUTEX_TYPE_DEFAULT);
- this->file = lib->settings->alloc_str(lib->settings,
+ this->file = lib->settings->get_str(lib->settings,
"%s.plugins.resolve.file", RESOLV_CONF, hydra->daemon);
return &this->public;