diff options
author | Salvador Cuñat <salvador.cunat@gmail.com> | 2017-02-24 00:09:06 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-02-25 09:19:48 -0800 |
commit | c2997c33c722ab075592ad0c5cb766a52aa7c90c (patch) | |
tree | e49e267fc925714573cc3c09622f9e97a65d58da /CMakeLists.txt | |
parent | 0f56a1e4bf0437d907d70af5228244c26e21b400 (diff) | |
download | subsurface-c2997c33c722ab075592ad0c5cb766a52aa7c90c.tar.gz |
smtk-import: Fix freeing unallocated memory
hdr_buffer pointer was not always allocated (just on dc dives), but was
always freed.
This should cause a crash while processing a manually added dive (or a dive
whose dc model couldn't be stablished), but not always does, crashes only
if the pointed memory hasn't been previously allocated. In most cases causes
memory corruption, which goes easily unnoticed as it is correctly freed in
next parse run.
This means, obviously, I have some work TODO fixing leaks with valgrind.
Signed-off-by: Salvador Cuñat <salvador.cunat@gmail.com>
Diffstat (limited to 'CMakeLists.txt')
0 files changed, 0 insertions, 0 deletions