Skip to content

Commit

Permalink
Mark this as a FIXME memory leak
Browse files Browse the repository at this point in the history
  • Loading branch information
philberty committed Dec 1, 2020
1 parent 8567160 commit 5296354
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gcc/rust/analysis/rust-type-resolution.cc
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,7 @@ TypeResolution::visit (AST::ArrayElemsValues &elems)
if (failed)
return;

// FIXME This will leak
auto capacity
= new AST::LiteralExpr (std::to_string (elems.get_num_values ()),
AST::Literal::INT,
Expand Down

0 comments on commit 5296354

Please sign in to comment.