Merge "Suppress false-positive static analyzer warnings" am: 0c89aaec1f am: 2ee27bfd0d am: d3ffb4344e

am: 5d1706346c

Change-Id: I81f748633e6bedccad71095e75a968fcd354ea59
This commit is contained in:
Ting-Yuan Huang 2017-09-06 05:19:45 +00:00 committed by android-build-merger
commit 379c255178
2 changed files with 2 additions and 0 deletions

View file

@ -222,6 +222,7 @@ static int LogBufferLog(struct LogBuffer* log,
log->last[logId] = node->prev;
}
list_remove(node);
LOG_ALWAYS_FATAL_IF(node == log->last[logId], "corrupted list");
free(e);
}
/* add entry to list */

View file

@ -250,6 +250,7 @@ LIBLOG_ABI_PUBLIC void android_log_format_free(AndroidLogFormat* p_format) {
while (!list_empty(&convertHead)) {
struct listnode* node = list_head(&convertHead);
list_remove(node);
LOG_ALWAYS_FATAL_IF(node == list_head(&convertHead), "corrupted list");
free(node);
}
}