summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libpixelflinger/codeflinger/mips64_disassem.c1
-rw-r--r--libpixelflinger/codeflinger/mips_disassem.c1
-rw-r--r--libutils/Printer.cpp2
3 files changed, 4 insertions, 0 deletions
diff --git a/libpixelflinger/codeflinger/mips64_disassem.c b/libpixelflinger/codeflinger/mips64_disassem.c
index f28d72627..1856e5c0e 100644
--- a/libpixelflinger/codeflinger/mips64_disassem.c
+++ b/libpixelflinger/codeflinger/mips64_disassem.c
@@ -555,6 +555,7 @@ static void db_printf(const char* fmt, ...)
555 } else { 555 } else {
556 vprintf(fmt, argp); 556 vprintf(fmt, argp);
557 } 557 }
558 va_end(argp);
558} 559}
559 560
560/* 561/*
diff --git a/libpixelflinger/codeflinger/mips_disassem.c b/libpixelflinger/codeflinger/mips_disassem.c
index 3007b1534..83a9740ed 100644
--- a/libpixelflinger/codeflinger/mips_disassem.c
+++ b/libpixelflinger/codeflinger/mips_disassem.c
@@ -562,6 +562,7 @@ static void db_printf(const char* fmt, ...)
562 } else { 562 } else {
563 vprintf(fmt, argp); 563 vprintf(fmt, argp);
564 } 564 }
565 va_end(argp);
565} 566}
566 567
567 568
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