diff options
author | Martin Willi <martin@revosec.ch> | 2011-04-21 10:48:16 +0200 |
---|---|---|
committer | Martin Willi <martin@revosec.ch> | 2011-04-21 10:48:16 +0200 |
commit | 3e2419ebe32de72d824864eb2e0e677a7c197af1 (patch) | |
tree | 2ee06332c69629a83bdca2de75daa057174535ef /src/libhydra/plugins/resolve/resolve_handler.c | |
parent | 17ce69b47a1efd6234960cf7d1f50712aee61db5 (diff) | |
download | strongswan-3e2419ebe32de72d824864eb2e0e677a7c197af1.tar.bz2 strongswan-3e2419ebe32de72d824864eb2e0e677a7c197af1.tar.xz |
Use thread save settings alloc_str function where appropriate
Diffstat (limited to 'src/libhydra/plugins/resolve/resolve_handler.c')
-rw-r--r-- | src/libhydra/plugins/resolve/resolve_handler.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libhydra/plugins/resolve/resolve_handler.c b/src/libhydra/plugins/resolve/resolve_handler.c index feb2fd05a..d16fec962 100644 --- a/src/libhydra/plugins/resolve/resolve_handler.c +++ b/src/libhydra/plugins/resolve/resolve_handler.c @@ -228,6 +228,7 @@ 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); } @@ -244,7 +245,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->get_str(lib->settings, + this->file = lib->settings->alloc_str(lib->settings, "%s.plugins.resolve.file", RESOLV_CONF, hydra->daemon); return &this->public; |