mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 14:25:27 +00:00
Cleanup: fix memory leak
Oops, I previously fixed only one of two instances. Coverity CID 45078 Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
b03c5a98d4
commit
bc6ec7cccb
1 changed files with 3 additions and 1 deletions
|
@ -584,7 +584,9 @@ static bool uemis_get_answer(const char *path, char *request, int n_param_in,
|
|||
if (ismulti && more_files && tmp[0] == '1') {
|
||||
int size;
|
||||
snprintf(fl, 13, "ANS%d.TXT", assembling_mbuf ? filenr - 2 : filenr - 1);
|
||||
ans_path = build_filename(build_filename(path, "ANS"), fl);
|
||||
char *intermediate = build_filename(path, "ANS");
|
||||
ans_path = build_filename(intermediate, fl);
|
||||
free(intermediate);
|
||||
ans_file = subsurface_open(ans_path, O_RDONLY, 0666);
|
||||
free(ans_path);
|
||||
size = bytes_available(ans_file);
|
||||
|
|
Loading…
Add table
Reference in a new issue