Reported by cppcheck

Signed-off-by: Thomas Jarosch <thomas.jaro...@intra2net.com>
---
 compat/asprintf.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/compat/asprintf.c b/compat/asprintf.c
index 733fc81..09020b3 100644
--- a/compat/asprintf.c
+++ b/compat/asprintf.c
@@ -54,10 +54,12 @@ vasprintf(char **ret, const char *fmt, va_list ap)
                free(*ret);
                goto error;
        }
+       va_end(ap2);
 
        return (n);
 
 error:
+       va_end(ap2);
        *ret = NULL;
        return (-1);
 }
-- 
1.9.3


------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users

Reply via email to