diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2012-09-13 10:46:09 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2012-09-13 10:46:09 -0700 |
commit | c74f58786d0a031a184b0933ddd19f7c48031bcc (patch) | |
tree | 11a3579605a5ab21ed41ebbd5117605f86b6c23c /dive.c | |
parent | 5dbf10a6d679e38b3e0a407bb6659f9bb4b8a6ce (diff) | |
download | subsurface-c74f58786d0a031a184b0933ddd19f7c48031bcc.tar.gz |
Fix memory leaks and one potential NULL dereference
Always make sure to clear the memory allocated at the "existing_filename"
pointer when setting it to a new address or NULL.
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Lifted these changes from a larger commit. The other changes I'll
reimplement in the next commit.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'dive.c')
0 files changed, 0 insertions, 0 deletions