Fix the remaining static analysis warnings.

Except two incorrect leak warnings and one about mktemp
 being insecure in the XML backend. See the respective
comments about those.
This commit is contained in:
John Ralls
2018-11-30 14:44:49 +09:00
parent bf55c30aeb
commit e81bcf6e33
8 changed files with 21 additions and 13 deletions

View File

@@ -722,6 +722,8 @@ static GncTaxTable *gncTaxTableCopy (const GncTaxTable *table)
GncTaxTableEntry *entry, *e;
entry = list->data;
e = gncTaxTableEntryCopy (entry);
/* Clang static analyzer thinks we're leaking e, but we're not.
* We're transferring it to table. */
gncTaxTableAddEntry (t, e);
}
return t;