summaryrefslogtreecommitdiff
path: root/source4/lib/appweb/mpr
diff options
context:
space:
mode:
Diffstat (limited to 'source4/lib/appweb/mpr')
-rw-r--r--source4/lib/appweb/mpr/miniMpr.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/lib/appweb/mpr/miniMpr.c b/source4/lib/appweb/mpr/miniMpr.c
index 615b46bf09..f4c219fe4c 100644
--- a/source4/lib/appweb/mpr/miniMpr.c
+++ b/source4/lib/appweb/mpr/miniMpr.c
@@ -343,6 +343,7 @@ static int mprCoreStrcat(int alloc, char **destp, int destMax, int existingLen,
addBytes += strlen(str) + sepLen;
str = va_arg(ap, const char*);
}
+ va_end(ap);
if (existingLen > 0) {
addBytes += sepLen;
@@ -387,6 +388,7 @@ static int mprCoreStrcat(int alloc, char **destp, int destMax, int existingLen,
dp += sepLen;
}
}
+ va_end(ap);
} else if (dest == 0) {
dest = (char*) mprMalloc(1);
}