Commit ed409e2b authored by Lev Walkin's avatar Lev Walkin

remove memleaks

parent 47fc74ca
......@@ -4314,6 +4314,7 @@ yyreduce:
{
(yyval.a_value) = asn1p_value_fromtype((yyvsp[(2) - (2)].a_expr));
checkmem((yyval.a_value));
asn1p_expr_free((yyvsp[(2) - (2)].a_expr));
}
break;
......@@ -4322,6 +4323,7 @@ yyreduce:
{
(yyval.a_value) = asn1p_value_fromtype((yyvsp[(1) - (1)].a_expr));
checkmem((yyval.a_value));
asn1p_expr_free((yyvsp[(1) - (1)].a_expr));
}
break;
......@@ -4939,6 +4941,7 @@ yyreduce:
{
(yyval.a_ref) = asn1p_ref_new(yylineno, currentModule);
asn1p_ref_add_component((yyval.a_ref), (yyvsp[(1) - (1)].tv_str), RLT_lowercase);
free((yyvsp[(1) - (1)].tv_str));
}
break;
......
......@@ -1986,11 +1986,13 @@ ContainedSubtype:
TOK_INCLUDES Type {
$$ = asn1p_value_fromtype($2);
checkmem($$);
asn1p_expr_free($2);
}
/* Can't put Type here because of conflicts. Simplified subset */
| DefinedUntaggedType {
$$ = asn1p_value_fromtype($1);
checkmem($$);
asn1p_expr_free($1);
}
;
......@@ -2475,6 +2477,7 @@ IdentifierAsReference:
Identifier {
$$ = asn1p_ref_new(yylineno, currentModule);
asn1p_ref_add_component($$, $1, RLT_lowercase);
free($1);
};
IdentifierAsValue:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment