Fix memleaks
diff --git a/src/core/engine/conf.c b/src/core/engine/conf.c
index 151c2e8..10021ae 100644
--- a/src/core/engine/conf.c
+++ b/src/core/engine/conf.c
@@ -1684,6 +1684,8 @@
ret_mod = (axis2_module_desc_t *)axutil_hash_get(all_modules, axutil_qname_to_string(mod_qname,
env), AXIS2_HASH_KEY_STRING);
+ axutil_qname_free(mod_qname, env);
+
return ret_mod;
}
diff --git a/src/core/transport/http/sender/http_client.c b/src/core/transport/http/sender/http_client.c
index b887e94..acab1ae 100644
--- a/src/core/transport/http/sender/http_client.c
+++ b/src/core/transport/http/sender/http_client.c
@@ -126,10 +126,14 @@
#ifdef AXIS2_SSL_ENABLED
if(http_client->data_stream->stream_type == AXIS2_STREAM_SOCKET)
{
+ axutil_stream_free(http_client->data_stream, env);
+ http_client->data_stream = NULL;
axutil_network_handler_close_socket(env, http_client->sockfd);
/** ssl streams of type AXIS2_STREAM_BASIC will be handled by SSL_shutdown(); */
}
#else
+ axutil_stream_free(http_client->data_stream, env);
+ http_client->data_stream = NULL;
axutil_network_handler_close_socket(env, http_client->sockfd);
#endif
http_client->sockfd = -1;