summaryrefslogtreecommitdiff
path: root/poptint.c
diff options
context:
space:
mode:
authorarekm <arekm>2007-06-15 12:47:37 +0000
committerarekm <arekm>2007-06-15 12:47:37 +0000
commitfb63efcf97895cb6c02c761cc451b5c5853c7547 (patch)
tree048b748c2cec95e6d9727695d16b236ef5923594 /poptint.c
parente86ea05a7a5cebcae371605be22365843e829966 (diff)
downloadlibpopt-fb63efcf97895cb6c02c761cc451b5c5853c7547.tar.gz
va_end on copy.
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;
}