diff options
author | Akira TAGOH <akira@tagoh.org> | 2018-07-25 12:39:53 +0900 |
---|---|---|
committer | Akira TAGOH <akira@tagoh.org> | 2018-07-25 12:39:53 +0900 |
commit | 5ea2ab6a3857855dd676388d81d2b4f6f327ae2a (patch) | |
tree | dc13809775254576c84c681aa7c64ee93712735c | |
parent | 38569f2f2e2abc0f2a543f48a286e464d5052546 (diff) | |
download | fontconfig-5ea2ab6a3857855dd676388d81d2b4f6f327ae2a.tar.gz |
Make a call fail on ENOMEM
-rw-r--r-- | src/fcptrlist.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/fcptrlist.c b/src/fcptrlist.c index a0688dd..bb88832 100644 --- a/src/fcptrlist.c +++ b/src/fcptrlist.c @@ -143,6 +143,8 @@ FcPtrListIterAdd (FcPtrList *list, return FcFalse; e = (FcPtrListEntry *) malloc (sizeof (FcPtrListEntry)); + if (!e) + return FcFalse; e->data = data; if (priv->entry) |