From 522ff88bbb2299dbd772fe93d26608bc4cc1a53c Mon Sep 17 00:00:00 2001 From: Mouse Date: Tue, 26 Dec 2023 10:57:13 -0500 Subject: [PATCH] Fix introduced problem in asn_internal.c Previous commit was wrong - va_end(args) is called once, and right where it belongs. --- skeletons/asn_internal.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/skeletons/asn_internal.c b/skeletons/asn_internal.c index ccd458cb1..1b282661d 100644 --- a/skeletons/asn_internal.c +++ b/skeletons/asn_internal.c @@ -18,7 +18,6 @@ asn__format_to_callback(int (*cb)(const void *, size_t, void *key), void *key, if(wrote < (ssize_t)buf_size) { if(wrote < 0) { if(buf != scratch) FREEMEM(buf); - va_end(args); return -1; } break; @@ -28,14 +27,12 @@ asn__format_to_callback(int (*cb)(const void *, size_t, void *key), void *key, if(buf == scratch) { buf = MALLOC(buf_size); if(!buf) { - va_end(args); return -1; } } else { void *p = REALLOC(buf, buf_size); if(!p) { FREEMEM(buf); - va_end(args); return -1; } buf = p; @@ -44,7 +41,6 @@ asn__format_to_callback(int (*cb)(const void *, size_t, void *key), void *key, cb_ret = cb(buf, wrote, key); if(buf != scratch) FREEMEM(buf); - va_end(args); if(cb_ret < 0) { return -1; }