]> git.meshlink.io Git - catta/commitdiff
* We should va_end the va_copy'd value too
authorTrent Lloyd <lathiat@bur.st>
Sun, 28 Aug 2005 18:54:51 +0000 (18:54 +0000)
committerTrent Lloyd <lathiat@bur.st>
Sun, 28 Aug 2005 18:54:51 +0000 (18:54 +0000)
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@473 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

avahi-common/malloc.c

index 0dd4eb0db6e31b4768f70d47cab7024a85f26ee8..96ad1deabded7d8ad4883cb28b243032cb5d8c86 100644 (file)
@@ -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;