Make a call fail on ENOMEM

This commit is contained in:
Akira TAGOH 2018-07-25 12:39:53 +09:00
parent 38569f2f2e
commit 5ea2ab6a38
1 changed files with 2 additions and 0 deletions

View File

@ -143,6 +143,8 @@ FcPtrListIterAdd (FcPtrList *list,
return FcFalse;
e = (FcPtrListEntry *) malloc (sizeof (FcPtrListEntry));
if (!e)
return FcFalse;
e->data = data;
if (priv->entry)