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 12f77bbc1..cbf042eb5 100644
--- a/libutils/Printer.cpp
+++ b/libutils/Printer.cpp
@@ -45,9 +45,11 @@ void Printer::printFormatLine(const char* format, ...) {
45#ifndef _WIN32 45#ifndef _WIN32
46 if (vasprintf(&formattedString, format, arglist) < 0) { // returns -1 on error 46 if (vasprintf(&formattedString, format, arglist) < 0) { // returns -1 on error
47 ALOGE("%s: Failed to format string", __FUNCTION__); 47 ALOGE("%s: Failed to format string", __FUNCTION__);
48 va_end(arglist);
48 return; 49 return;
49 } 50 }
50#else 51#else
52 va_end(arglist);
51 return; 53 return;
52#endif 54#endif
53 55