summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/core/transport/http/common/http_worker.c6
-rw-r--r--util/include/platforms/os400/axutil_os400.h6
-rw-r--r--util/include/platforms/unix/axutil_unix.h6
-rw-r--r--util/include/platforms/windows/axutil_windows.h5
-rw-r--r--util/src/minizip/archive_extract.c4
5 files changed, 22 insertions, 5 deletions
diff --git a/src/core/transport/http/common/http_worker.c b/src/core/transport/http/common/http_worker.c
index 9306d8c..8a8dfe6 100644
--- a/src/core/transport/http/common/http_worker.c
+++ b/src/core/transport/http/common/http_worker.c
@@ -1062,6 +1062,12 @@ axis2_http_worker_process_request(
axis2_http_status_line_free(tmp_stat_line, env);
tmp_stat_line = NULL;
}
+
+ axis2_engine_free(engine, env);
+ if(fault_ctx)
+ {
+ axis2_msg_ctx_free(fault_ctx, env);
+ }
}
}
else
diff --git a/util/include/platforms/os400/axutil_os400.h b/util/include/platforms/os400/axutil_os400.h
index 5261c4d..8c8f12c 100644
--- a/util/include/platforms/os400/axutil_os400.h
+++ b/util/include/platforms/os400/axutil_os400.h
@@ -258,7 +258,11 @@ static int os400_ftime(struct os400_timeb * tp)
/** minizip functions */
#define axis2_fill_win32_filefunc(ffunc)
-#define AXIS2_UNZOPEN2(zipfilename,ffunc) do { unzOpen2(zipfilename,NULL); memset(&ffunc, 0, sizeof(ffunc)); } while (0)
+#define AXIS2_UNZOPEN2(zipfilename, ffunc, uf) \
+ { \
+ uf = unzOpen2(zipfilename,NULL); \
+ memset(&ffunc, 0, sizeof(ffunc)); \
+ }
/**
* handling variable number of arguments (for log.c)
diff --git a/util/include/platforms/unix/axutil_unix.h b/util/include/platforms/unix/axutil_unix.h
index 3088d0d..7a5c084 100644
--- a/util/include/platforms/unix/axutil_unix.h
+++ b/util/include/platforms/unix/axutil_unix.h
@@ -262,7 +262,11 @@ extern "C"
/** minizip functions */
#define axis2_fill_win32_filefunc(ffunc)
-#define AXIS2_UNZOPEN2(zipfilename,ffunc) unzOpen2(zipfilename,NULL); memset(&ffunc, 0, sizeof(ffunc));
+#define AXIS2_UNZOPEN2(zipfilename, ffunc, uf) \
+ { \
+ uf = unzOpen2(zipfilename,NULL); \
+ memset(&ffunc, 0, sizeof(ffunc)); \
+ }
/**
* handling variable number of arguments (for log.c)
diff --git a/util/include/platforms/windows/axutil_windows.h b/util/include/platforms/windows/axutil_windows.h
index 44a3ac9..53d332c 100644
--- a/util/include/platforms/windows/axutil_windows.h
+++ b/util/include/platforms/windows/axutil_windows.h
@@ -255,7 +255,10 @@ extern "C"
* minizip functions
*/
#define axis2_fill_win32_filefunc(ffunc) fill_win32_filefunc(ffunc)
-#define AXIS2_UNZOPEN2(zipfilename,ffunc) unzOpen2(zipfilename,NULL)
+#define AXIS2_UNZOPEN2(zipfilename, ffunc, uf) \
+ { \
+ uf = unzOpen2(zipfilename,NULL); \
+ }
/**
* handling variable number of arguments (for log.c)
diff --git a/util/src/minizip/archive_extract.c b/util/src/minizip/archive_extract.c
index 7a0d7fe..8041302 100644
--- a/util/src/minizip/archive_extract.c
+++ b/util/src/minizip/archive_extract.c
@@ -267,12 +267,12 @@ aar_extract(
axis2_fill_win32_filefunc(&ffunc);
((void)(ffunc)); /* Just to avoid unused variable warning */
- uf = AXIS2_UNZOPEN2(zipfilename, ffunc);
+ AXIS2_UNZOPEN2(zipfilename, ffunc, uf);
if (uf == NULL)
{
strcat(filename_try, ".zip");
- uf = AXIS2_UNZOPEN2(zipfilename, ffunc);
+ AXIS2_UNZOPEN2(zipfilename, ffunc, uf);
}
}