diff --git a/libavformat/movenc-test.c b/libavformat/movenc-test.c index 0c40b3a9e0..6520aea94b 100644 --- a/libavformat/movenc-test.c +++ b/libavformat/movenc-test.c @@ -137,6 +137,7 @@ static void check_func(int value, int line, const char *msg, ...) vprintf(msg, ap); printf("\n"); check_faults++; + va_end(ap); } } #define check(value, ...) check_func(value, __LINE__, __VA_ARGS__)