summaryrefslogtreecommitdiff
path: root/poptint.c
diff options
context:
space:
mode:
Diffstat (limited to 'poptint.c')
-rw-r--r--poptint.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/poptint.c b/poptint.c
index d327377..42b5cf4 100644
--- a/poptint.c
+++ b/poptint.c
@@ -104,6 +104,8 @@ strdup_vprintf (const char *format, va_list ap)
buffer = calloc (sizeof (char), vsnprintf (&c, 1, format, ap) + 1);
vsprintf (buffer, format, apc);
+ va_end(apc);
+
return buffer;
}