Clear scariness score when initializing ErrorDoubleFree

llvm-svn: 280363
This commit is contained in:
Filipe Cabecinhas 2016-09-01 12:51:58 +00:00
parent 6e903def8b
commit f1fb439d31
1 changed files with 1 additions and 0 deletions

View File

@ -54,6 +54,7 @@ struct ErrorDoubleFree : ErrorBase {
ErrorDoubleFree() = default;
ErrorDoubleFree(uptr addr, u32 tid_, BufferedStackTrace *stack)
: tid(tid_), second_free_stack(stack) {
scariness.Clear();
CHECK_GT(second_free_stack->size, 0);
GetHeapAddressInformation(addr, 1, &addr_description);
scariness.Clear();