mirror of
https://github.com/intel/llvm.git
synced 2026-01-20 01:58:44 +08:00
fix a couple of clang static analyzer warnings.
Most important was a new[] + delete mismatch in ScanFormatDescriptor() and a couple of possible memory leaks in FileSpec::EnumerateDirectory(). llvm-svn: 181080
This commit is contained in:
@@ -1179,7 +1179,7 @@ ScanFormatDescriptor (const char* var_name_begin,
|
||||
log->Printf("ScanFormatDescriptor] will display value for this VO");
|
||||
*val_obj_display = ValueObject::eValueObjectRepresentationStyleValue;
|
||||
}
|
||||
delete format_name;
|
||||
delete[] format_name;
|
||||
}
|
||||
if (log)
|
||||
log->Printf("ScanFormatDescriptor] final format description outcome: custom_format = %d, val_obj_display = %d",
|
||||
|
||||
Reference in New Issue
Block a user