From: Hermet Park Date: Wed, 27 Feb 2019 10:13:18 +0000 (+0900) Subject: evas vg: don't access a dangling pointer. X-Git-Tag: accepted/tizen/unified/20190228.083550~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a11bf0e8263f17c9628a6705a1469bc1f23d3c4e;p=platform%2Fupstream%2Fefl.git evas vg: don't access a dangling pointer. Change-Id: Iecac959e42257f7ba45444e3de4c7af5d7034afa --- diff --git a/src/static_libs/vg_common/vg_common_svg.c b/src/static_libs/vg_common/vg_common_svg.c index 6b18a0e..c55a057 100644 --- a/src/static_libs/vg_common/vg_common_svg.c +++ b/src/static_libs/vg_common/vg_common_svg.c @@ -847,7 +847,8 @@ _create_node(Svg_Node *parent, Svg_Node_Type type) if (!node->style) { free(node); - EINA_SAFETY_ON_NULL_RETURN_VAL(node->style, NULL); + ERR("OOM: Failed calloc()"); + return NULL; } // update the default value of stroke and fill