summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGreg Kaiser <gkaiser@google.com>2021-02-21 10:37:57 -0800
committerGreg Kaiser <gkaiser@google.com>2021-02-21 10:37:57 -0800
commit29869a781c3d38a55fbd60df08c1a25b1ec262e3 (patch)
treed3cc7d27c1e31c2506034d8e784a9e4e3d5c774d /tests
parent827047964067ae473b10285da87dc03f7b79851e (diff)
downloadextras-29869a781c3d38a55fbd60df08c1a25b1ec262e3.tar.gz
tests: Avoid leak of va_list
We add a va_end() call to pair with our va_start(). Bug: 168890623 Test: TreeHugger Change-Id: Id6e391589d93c34719e6810458c1eadc4fe0e8e3
Diffstat (limited to 'tests')
-rw-r--r--tests/audio/alsa/pcmtest.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/audio/alsa/pcmtest.cpp b/tests/audio/alsa/pcmtest.cpp
index a6e63ddd..883aa972 100644
--- a/tests/audio/alsa/pcmtest.cpp
+++ b/tests/audio/alsa/pcmtest.cpp
@@ -67,6 +67,7 @@ void testPrint(FILE* stream, const char* fmt, ...) {
ALOG(LOG_INFO, LOG_TAG, "%s", line);
}
vfprintf(stream, fmt, args);
+ va_end(args);
fputc('\n', stream);
}