Changeset 1a46f5e in subsurface


Ignore:
Timestamp:
Dec 26, 2017, 2:22:52 PM (4 weeks ago)
Author:
Dirk Hohndel <dirk@…>
Branches:
master
Children:
f4237bf
Parents:
42db4451
Message:

Cleanup: avoid memory leak

Coverity CID 208327

Signed-off-by: Dirk Hohndel <dirk@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • core/liquivision.c

    re78f89b0 r1a46f5e  
    428428                dive->downloaded = true;
    429429                record_dive(dive);
     430                dive = NULL;
    430431                mark_divelist_changed(true);
    431432
     
    435436
    436437        //DEBUG save_dives("/tmp/test.xml");
     438
     439        // if we bailed out of the loop, the dive hasn't been recorded and dive hasn't been set to NULL
     440        free(dive);
    437441}
    438442
Note: See TracChangeset for help on using the changeset viewer.