summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'libutils/Printer.cpp')
-rw-r--r--libutils/Printer.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/libutils/Printer.cpp b/libutils/Printer.cpp
index 98cd2c66a..84af2930b 100644
--- a/libutils/Printer.cpp
+++ b/libutils/Printer.cpp
@@ -47,9 +47,11 @@ void Printer::printFormatLine(const char* format, ...) {
47#ifndef _WIN32 47#ifndef _WIN32
48 if (vasprintf(&formattedString, format, arglist) < 0) { // returns -1 on error 48 if (vasprintf(&formattedString, format, arglist) < 0) { // returns -1 on error
49 ALOGE("%s: Failed to format string", __FUNCTION__); 49 ALOGE("%s: Failed to format string", __FUNCTION__);
50 va_end(arglist);
50 return; 51 return;
51 } 52 }
52#else 53#else
54 va_end(arglist);
53 return; 55 return;
54#endif 56#endif
55 57