summaryrefslogtreecommitdiffstats
path: root/libcsoap/soap-ctx.c
diff options
context:
space:
mode:
Diffstat (limited to 'libcsoap/soap-ctx.c')
-rwxr-xr-xlibcsoap/soap-ctx.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/libcsoap/soap-ctx.c b/libcsoap/soap-ctx.c
index 7edefc3..dd68861 100755
--- a/libcsoap/soap-ctx.c
+++ b/libcsoap/soap-ctx.c
@@ -1,5 +1,5 @@
/******************************************************************
- * $Id: soap-ctx.c,v 1.7 2006/01/10 11:29:04 snowdrop Exp $
+ * $Id: soap-ctx.c,v 1.8 2006/02/18 20:14:36 snowdrop Exp $
*
* CSOAP Project: A SOAP client/server library in C
* Copyright (C) 2003-2004 Ferhat Ayaz
@@ -21,16 +21,17 @@
*
* Email: ferhatayaz@jprogrammer.net
******************************************************************/
-#include <libcsoap/soap-ctx.h>
-
#include <string.h>
+#include <libcsoap/soap-ctx.h>
+
SoapCtx *
soap_ctx_new(SoapEnv * env) /* should only be used internally */
{
SoapCtx *ctx = (SoapCtx *) malloc(sizeof(SoapCtx));
ctx->env = env;
ctx->attachments = NULL;
+ ctx->action = NULL;
return ctx;
}
@@ -133,6 +134,8 @@ soap_ctx_free(SoapCtx * ctx)
attachments_free(ctx->attachments);
if (ctx->env)
soap_env_free(ctx->env);
+ if (ctx->action)
+ free(ctx->action);
free(ctx);
}