Signed-off-by: Anton Lundin <[email protected]>
---
 dive.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dive.c b/dive.c
index 349bc10..683fbb8 100644
--- a/dive.c
+++ b/dive.c
@@ -2466,6 +2466,7 @@ void make_first_dc()
        while (dc && dc->next != cur_dc)
                dc = dc->next;
        if (!dc) {
+               free(newdc);
                fprintf(stderr, "data inconsistent: can't find the current DC");
                return;
        }
-- 
1.9.1

_______________________________________________
subsurface mailing list
[email protected]
http://lists.hohndel.org/cgi-bin/mailman/listinfo/subsurface

Reply via email to