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: submit/tizen/20190308.115227~78 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a22a20b695f50482b8f872ab40027259d5d07624;p=platform%2Fupstream%2Fefl.git evas vg: don't access a dangling pointer. --- 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