diff options
-rw-r--r-- | lib/skin_parser/skin_parser.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/skin_parser/skin_parser.c b/lib/skin_parser/skin_parser.c index 1d784f918a..0610561699 100644 --- a/lib/skin_parser/skin_parser.c +++ b/lib/skin_parser/skin_parser.c | |||
@@ -778,6 +778,11 @@ static int skin_parse_tag(struct skin_element* element, const char** document) | |||
778 | else if (tolower(type_code) == 't') | 778 | else if (tolower(type_code) == 't') |
779 | { | 779 | { |
780 | struct skin_element* child = skin_alloc_element(); | 780 | struct skin_element* child = skin_alloc_element(); |
781 | if (!child) | ||
782 | { | ||
783 | skin_error(MEMORY_LIMIT_EXCEEDED, cursor); | ||
784 | return 0; | ||
785 | } | ||
781 | child->type = TAG; | 786 | child->type = TAG; |
782 | if (!skin_parse_tag(child, &cursor)) | 787 | if (!skin_parse_tag(child, &cursor)) |
783 | return 0; | 788 | return 0; |