You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by na...@apache.org on 2009/09/07 12:53:00 UTC
svn commit: r812074 -
/webservices/axis2/trunk/c/src/core/transport/http/util/http_transport_utils.c
Author: nandika
Date: Mon Sep 7 10:53:00 2009
New Revision: 812074
URL: http://svn.apache.org/viewvc?rev=812074&view=rev
Log:
added closing file handle opened to read the static wsdl file.
Modified:
webservices/axis2/trunk/c/src/core/transport/http/util/http_transport_utils.c
Modified: webservices/axis2/trunk/c/src/core/transport/http/util/http_transport_utils.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/src/core/transport/http/util/http_transport_utils.c?rev=812074&r1=812073&r2=812074&view=diff
==============================================================================
--- webservices/axis2/trunk/c/src/core/transport/http/util/http_transport_utils.c (original)
+++ webservices/axis2/trunk/c/src/core/transport/http/util/http_transport_utils.c Mon Sep 7 10:53:00 2009
@@ -1761,7 +1761,7 @@
if(wsdl_path)
{
- FILE *wsdl_file;
+ FILE *wsdl_file = NULL;
axis2_char_t *content = NULL;
int c;
int size = AXIS2_FILE_READ_SIZE;
@@ -1788,7 +1788,9 @@
}
content[i] = AXIS2_ESC_NULL;
wsdl_string = (axis2_char_t *)content;
+ fclose(wsdl_file);
}
+
AXIS2_FREE(env->allocator, wsdl_path);
}
else