mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 14:25:27 +00:00
Avoid leaking memory
Coverity CID 1325758, 1325759, 1325760 Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
0db9bbdea7
commit
415d3501da
1 changed files with 9 additions and 3 deletions
|
@ -153,9 +153,15 @@ void print_files()
|
|||
} else {
|
||||
printf("Unable to get local git directory\n");
|
||||
}
|
||||
printf("Cloud URL: %s\n", cloud_url());
|
||||
printf("Image hashes: %s\n", hashfile_name_string());
|
||||
printf("Local picture directory: %s\n\n", picturedir_string());
|
||||
char *tmp = cloud_url();
|
||||
printf("Cloud URL: %s\n", tmp);
|
||||
free(tmp);
|
||||
tmp = hashfile_name_string();
|
||||
printf("Image hashes: %s\n", tmp);
|
||||
free(tmp);
|
||||
tmp = picturedir_string();
|
||||
printf("Local picture directory: %s\n\n", tmp);
|
||||
free(tmp);
|
||||
}
|
||||
|
||||
static void print_help()
|
||||
|
|
Loading…
Add table
Reference in a new issue