core: use std::string for hashfile_name

One more free() removed.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2024-06-11 17:06:27 +02:00 committed by bstoeger
parent ec92cff92c
commit 5805b14734
3 changed files with 6 additions and 13 deletions

View file

@ -63,9 +63,7 @@ void print_files()
printf("Unable to get local git directory\n");
}
printf("Cloud URL: %s\n", filename->c_str());
char *tmp = hashfile_name_string();
printf("Image filename table: %s\n", tmp);
free(tmp);
printf("Image filename table: %s\n", hashfile_name().c_str());
}
static void print_help()