diff options
author | Lubomir I. Ivanov <neolit123@gmail.com> | 2012-12-24 03:51:39 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2012-12-27 08:05:18 -0800 |
commit | cc3b87c04492051146c01e4339f09065ef754db2 (patch) | |
tree | 7a703efba1085a7dcd1191d7a4f25c7838318b92 /dive.c | |
parent | 720d4c65e854dceaedafd4d435a1832b75633d84 (diff) | |
download | subsurface-cc3b87c04492051146c01e4339f09065ef754db2.tar.gz |
Clear memory allocated for event names
parse-xml.c:
When parsing events, we allocate memory for the event 'name' attribute,
but also have to free this memory eventually. Let's do that in event_end()
right after add_event() is called.
Fixes a long-running memory leak in the parser.
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'dive.c')
0 files changed, 0 insertions, 0 deletions