Changeset bc6ec7c in subsurface


Ignore:
Timestamp:
Dec 30, 2017, 9:25:21 AM (3 weeks ago)
Author:
Dirk Hohndel <dirk@…>
Branches:
master
Children:
1e20bc9c
Parents:
b03c5a9
git-author:
Dirk Hohndel <dirk@…> (12/30/17 09:25:18)
git-committer:
Dirk Hohndel <dirk@…> (12/30/17 09:25:21)
Message:

Cleanup: fix memory leak

Oops, I previously fixed only one of two instances.

Coverity CID 45078

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • core/uemis-downloader.c

    r84d7d80 rbc6ec7c  
    585585                        int size;
    586586                        snprintf(fl, 13, "ANS%d.TXT", assembling_mbuf ? filenr - 2 : filenr - 1);
    587                         ans_path = build_filename(build_filename(path, "ANS"), fl);
     587                        char *intermediate = build_filename(path, "ANS");
     588                        ans_path = build_filename(intermediate, fl);
     589                        free(intermediate);
    588590                        ans_file = subsurface_open(ans_path, O_RDONLY, 0666);
    589591                        free(ans_path);
Note: See TracChangeset for help on using the changeset viewer.