Changeset 652e382 in subsurface


Ignore:
Timestamp:
Dec 26, 2017, 1:41:58 PM (4 weeks ago)
Author:
Dirk Hohndel <dirk@…>
Branches:
master
Children:
2c8614e
Parents:
65213f0
git-author:
Dirk Hohndel <dirk@…> (12/26/17 13:14:40)
git-committer:
Dirk Hohndel <dirk@…> (12/26/17 13:41:58)
Message:

Cleanup: avoid a few memory leaks

Coverity CID 215199
Coverity CID 215195
Coverity CID 215196
Coverity CID 215198

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

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • core/ostctools.c

    r3c346bb r652e382  
    178178        fclose(archive);
    179179out:
     180        free(archive);
    180181        free(devdata);
    181182        free(buffer);
  • qt-models/diveplannermodel.cpp

    r130f1094 r652e382  
    10201020                int my_instance = ++instanceCounter;
    10211021                cache_deco_state(&ds, &save);
    1022                
     1022
    10231023                duration_t delta_time = { .seconds = 60 };
    10241024                QString time_units = tr("min");
     
    10901090        free_dps(original_plan);
    10911091        free(original_plan);
     1092        free(save);
     1093        free(cache);
     1094        free(dive);
    10921095//      setRecalc(oldRecalc);
    10931096}
Note: See TracChangeset for help on using the changeset viewer.