Fix memory leaks with PB_ENABLE_MALLOC and certain submessage type combinations.
authorPetteri Aimonen <jpa@git.mail.kapsi.fi>
Fri, 26 Dec 2014 21:14:39 +0000 (23:14 +0200)
committerPetteri Aimonen <jpa@git.mail.kapsi.fi>
Fri, 26 Dec 2014 21:27:35 +0000 (23:27 +0200)
commit88b2efe0477f4f9e313b5d7307dfd347b6893376
treeb650e4df6f5cf652fa829ea442d70a68ef5815f7
parent500883048860cc98745d69ae1d16d85523cd5291
Fix memory leaks with PB_ENABLE_MALLOC and certain submessage type combinations.

There was a memory leak when:

1) A statically allocated submessage or
2) an extension field submessage

contained

A) a pointer-type field or
B) a submessage that further contained a pointer-type field.

This was because pb_release() didn't recurse into non-pointer fields.

Update issue 138
Status: FixedInGit
pb_decode.c