Closed GoogleCodeExporter closed 9 years ago
The release of the submessage is already done inside pb_release_single_field():
https://code.google.com/p/nanopb/source/browse/pb_decode.c#910
Also it is covered by 'alltypes_pointer' test case.
Can you provide a compilable source code that displays this problem?
How have you detected the memory leak?
Original comment by Petteri.Aimonen
on 25 Dec 2014 at 6:38
Ah, yeah, now I see the bug. Occurs when there is a statically allocated
submessage that contains dynamic fields.
Thanks for the report.
Original comment by Petteri.Aimonen
on 25 Dec 2014 at 7:05
This issue was updated by revision 88b2efe0477f.
Original comment by Petteri.Aimonen
on 26 Dec 2014 at 10:03
Fixed now, also for extension fields and repeated arrays.
Fix backported to 0.2.9.x maintenance series also.
Original comment by Petteri.Aimonen
on 26 Dec 2014 at 10:04
Fix released in nanopb-0.3.2.
Original comment by Petteri.Aimonen
on 24 Jan 2015 at 3:53
Original issue reported on code.google.com by
jenia0...@gmail.com
on 25 Dec 2014 at 12:20