Fix a bunch of memory allocation errors found by clang static analysis.

This commit is contained in:
John Ralls
2018-11-28 14:48:42 +09:00
parent de6c173ef4
commit faba7975ac
20 changed files with 95 additions and 85 deletions

View File

@@ -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;
}
}