Merge "Va_end should be used with va_start" am: 5f4808382e

am: 34b7617cb7

Change-Id: Ibc9fed36270da3f960179086792ce1187be31e92
This commit is contained in:
Mikhail Lappo 2017-06-14 23:11:05 +00:00 committed by android-build-merger
commit df36644d68
3 changed files with 4 additions and 0 deletions

View file

@ -555,6 +555,7 @@ static void db_printf(const char* fmt, ...)
} else {
vprintf(fmt, argp);
}
va_end(argp);
}
/*

View file

@ -562,6 +562,7 @@ static void db_printf(const char* fmt, ...)
} else {
vprintf(fmt, argp);
}
va_end(argp);
}

View file

@ -45,9 +45,11 @@ void Printer::printFormatLine(const char* format, ...) {
#ifndef _WIN32
if (vasprintf(&formattedString, format, arglist) < 0) { // returns -1 on error
ALOGE("%s: Failed to format string", __FUNCTION__);
va_end(arglist);
return;
}
#else
va_end(arglist);
return;
#endif