mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Fix a bunch of memory allocation errors found by clang static analysis.
This commit is contained in:
@@ -234,6 +234,7 @@ qof_collection_from_glist (QofIdType type, const GList *glist)
|
||||
ent = QOF_INSTANCE(list->data);
|
||||
if (FALSE == qof_collection_add_entity(coll, ent))
|
||||
{
|
||||
qof_collection_destroy(coll);
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user