diff options
author | Dmitry Shmidt <dimitrysh@google.com> | 2021-02-22 08:08:47 -0800 |
---|---|---|
committer | Dmitry Shmidt <dimitrysh@google.com> | 2021-02-22 08:08:47 -0800 |
commit | d555e52a1c78415a7191dd7fd9149aa19e00c729 (patch) | |
tree | ecf758e1e2b5ac69693d438ded750f87afc1ecd2 /tests | |
parent | 8078ea5580015f51c7e0d1fe106f00635c330481 (diff) | |
download | extras-d555e52a1c78415a7191dd7fd9149aa19e00c729.tar.gz |
tests: Avoid leak of va_list
Add a va_end() call to pair with our va_start().
Bug: 168890623
Test: TreeHugger
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
Change-Id: I23455e463067b84552daea6c5c2b63d5ddb8cd5f
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/testUtil/testUtil.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/lib/testUtil/testUtil.c b/tests/lib/testUtil/testUtil.c index 6cfff9f3..f2236d54 100644 --- a/tests/lib/testUtil/testUtil.c +++ b/tests/lib/testUtil/testUtil.c @@ -153,6 +153,7 @@ void testPrint(FILE *stream, const char *fmt, ...) ALOG(LOG_INFO, logCatTag, "%s", line); } vfprintf(stream, fmt, args); + va_end(args); fputc('\n', stream); } |