summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
0f78708)
When allocation for the node attributes fail, clean up the node allocation
and report failure.
{
new->attr = FcConfigSaveAttr (attr);
if (!new->attr)
{
new->attr = FcConfigSaveAttr (attr);
if (!new->attr)
FcConfigMessage (parse, FcSevereError, "out of memory");
FcConfigMessage (parse, FcSevereError, "out of memory");
+ FcMemFree (FC_MEM_PSTACK, sizeof (FcPStack));
+ free (new);
+ return FcFalse;
+ }