commit | f9f3a5ecde4cb636d8eb43edc0d097bd364ffe75 | [log] [tgz] |
---|---|---|
author | Markus Armbruster <[email protected]> | Wed May 07 09:53:51 2014 +0200 |
committer | Luiz Capitulino <[email protected]> | Thu May 15 14:00:46 2014 -0400 |
tree | e9c8956d719caa9e080adc76423f36200ed42c3c | |
parent | be3c771796cb5ca4e7de2e04ed3cd2e3b6b76185 [diff] |
hmp: Call visit_end_struct() after visit_start_struct() succeeds When visit_start_struct() succeeds, visit_end_struct() must be called. hmp_object_add() doesn't when a member visit fails. As far as I can tell, the opts visitor copes okay with the misuse. Fix it anyway. Signed-off-by: Markus Armbruster <[email protected]> Reviewed-by: Eric Blake <[email protected]> Signed-off-by: Luiz Capitulino <[email protected]>