axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nand...@apache.org
Subject svn commit: r812074 - /webservices/axis2/trunk/c/src/core/transport/http/util/http_transport_utils.c
Date Mon, 07 Sep 2009 10:53:00 GMT
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



Mime
View raw message