diff options
author | Lukas Lansky <lukas.lansky@suse.com> | 2021-09-29 19:06:06 +0200 |
---|---|---|
committer | Nico Williams <nico@cryptonector.com> | 2022-05-26 15:53:59 -0500 |
commit | 29cf77977ef52eec708982b19bf9d2ec17443337 (patch) | |
tree | ad85a29391d93e8984b207c374e419613a31e05e | |
parent | 55e6e2c21829bd866bd4b18ee254b05c9020320a (diff) |
Missing "va_end" call. This was found by running the cppcheck static analysis where it shows as error.
-rw-r--r-- | src/locfile.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/locfile.c b/src/locfile.c index 90772a3f..7415ab76 100644 --- a/src/locfile.c +++ b/src/locfile.c @@ -72,6 +72,7 @@ void locfile_locate(struct locfile* l, location loc, const char* fmt, ...) { } jv m1 = jv_string_vfmt(fmt, fmtargs); + va_end(fmtargs); if (!jv_is_valid(m1)) { jq_report_error(l->jq, m1); return; |