summaryrefslogtreecommitdiffstats
path: root/avahi-common/malloc.c
diff options
context:
space:
mode:
authorTrent Lloyd <lathiat@bur.st>2005-08-28 18:54:51 +0000
committerTrent Lloyd <lathiat@bur.st>2005-08-28 18:54:51 +0000
commit9217e657e5afcbc6da90bfdd65b4417999af6402 (patch)
tree0d3dbef75f413e029e462f622ff7165d757bbe4c /avahi-common/malloc.c
parentc0eb12ae8965571be6afe8c02e5f9d9cc70d073a (diff)
* We should va_end the va_copy'd value too
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@473 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
Diffstat (limited to 'avahi-common/malloc.c')
-rw-r--r--avahi-common/malloc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/avahi-common/malloc.c b/avahi-common/malloc.c
index 0dd4eb0..96ad1de 100644
--- a/avahi-common/malloc.c
+++ b/avahi-common/malloc.c
@@ -209,6 +209,8 @@ char *avahi_strdup_vprintf(const char *fmt, va_list ap) {
n = vsnprintf(buf, len, fmt, ap);
+ va_end (ap2);
+
if (n >= 0 && n < (int) len)
return buf;