Sexpr tests leaking memory
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
KiCad |
Fix Committed
|
Low
|
John Beard |
Bug Description
The Sexpr test leak memory:
==13786== 56 bytes in 1 blocks are definitely lost in loss record 129 of 244
==13786== at 0x4838DEF: operator new(unsigned long) (vg_replace_
==13786== by 0x12BD6E: SEXPR::
==13786== by 0x12B98D: SEXPR::
==13786== by 0x125922: TEST_SEXPR_
==13786== by 0x121E86: SexprParser:
==13786== by 0x12176D: SexprParser:
This is because the SEXPR::PARSER class new's pointers and doesn't delete them on a parse failure (when an exception is thrown).
----
Found in master: 5.1.0-669-
Fixed in revision a045642b7ec87cd 9fe55438cf55a6b c2286ee119 /git.launchpad. net/kicad/ patch/? id=a045642b7ec8 7cd9fe55438cf55 a6bc2286ee119
https:/