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:
Jason Molenda
2013-05-04 00:39:52 +00:00
parent d9104c0359
commit fe806906d4
7 changed files with 13 additions and 9 deletions

View File

@@ -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",