From: Hermet Park Date: Mon, 18 Feb 2019 06:09:44 +0000 (+0900) Subject: evas vg: check for OOM when calloc() X-Git-Tag: submit/tizen/20190308.115227~178 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a5e43587a2624341edf7bd28b57c1dc3f00d47d2;p=platform%2Fupstream%2Fefl.git evas vg: check for OOM when calloc() --- diff --git a/src/static_libs/vg_common/vg_common_svg.c b/src/static_libs/vg_common/vg_common_svg.c index c55a057..6b18a0e 100644 --- a/src/static_libs/vg_common/vg_common_svg.c +++ b/src/static_libs/vg_common/vg_common_svg.c @@ -847,8 +847,7 @@ _create_node(Svg_Node *parent, Svg_Node_Type type) if (!node->style) { free(node); - ERR("OOM: Failed calloc()"); - return NULL; + EINA_SAFETY_ON_NULL_RETURN_VAL(node->style, NULL); } // update the default value of stroke and fill