diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2016-02-18 17:37:17 -0500 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2016-02-18 19:39:09 -0500 |
commit | 06466a7f039240b4c75cd5920401a7699c263d6e (patch) | |
tree | 9491db92c04a71026fdad6408aea0f54363196ab /test/a.service | |
parent | 82501b3fc40dae2660a86ab07462f33fe26347ad (diff) |
journal/catalog: fix memory leaks
Various buffers were lost because finish_item() either consumed
the buffer or allocated a new one (if an entry with the same key existed).
The caller would simply forget the buffer in either case.
Also add a check for the case when a valid identifier is followed by
an empty body. We should not allow this.
Also be more consistent in error handling and always print an error
message.
Diffstat (limited to 'test/a.service')
0 files changed, 0 insertions, 0 deletions