yin parser BUGFIX memleak
diff --git a/src/parser_yin.c b/src/parser_yin.c
index 03241ef..aa27547 100644
--- a/src/parser_yin.c
+++ b/src/parser_yin.c
@@ -526,6 +526,8 @@
                 LOGVAL_PARSER(xml_ctx, LY_VCODE_INCHILDSTMT_YIN, name_len, name, 9, "extension");
                 return LY_EVALID;
         }
+        LY_ARRAY_FREE(subelem_args);
+        subelem_args = NULL;
     }
 
     return ret;