mirror of
https://github.com/zeek/zeek.git
synced 2025-10-04 23:58:20 +00:00
Merge remote-tracking branch 'origin/topic/timw/coverity-findings'
* origin/topic/timw/coverity-findings: Fix a number of Coverity findings
This commit is contained in:
commit
2021df7418
7 changed files with 19 additions and 7 deletions
|
@ -169,15 +169,16 @@ bool SQLite::DoInit(const WriterInfo& info, int arg_num_fields,
|
|||
}
|
||||
|
||||
create += fieldname;
|
||||
sqlite3_free(fieldname);
|
||||
|
||||
string type = GetTableType(field->type, field->subtype);
|
||||
if ( type == "" )
|
||||
{
|
||||
InternalError(Fmt("Could not determine type for field %u:%s", i, fieldname));
|
||||
sqlite3_free(fieldname);
|
||||
return false;
|
||||
}
|
||||
|
||||
sqlite3_free(fieldname);
|
||||
create += " " + type;
|
||||
|
||||
/* if ( !field->optional ) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue