summaryrefslogtreecommitdiff
path: root/src/test/test-hashmap-plain.c
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2016-02-18 17:37:17 -0500
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2016-02-18 19:39:09 -0500
commit06466a7f039240b4c75cd5920401a7699c263d6e (patch)
tree9491db92c04a71026fdad6408aea0f54363196ab /src/test/test-hashmap-plain.c
parent82501b3fc40dae2660a86ab07462f33fe26347ad (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 'src/test/test-hashmap-plain.c')
0 files changed, 0 insertions, 0 deletions