--- hatari/tools/hmsa/hmsa.c 2019/04/01 07:15:08 1.1.1.2 +++ hatari/tools/hmsa/hmsa.c 2019/04/09 08:49:02 1.1.1.4 @@ -15,11 +15,14 @@ #include "file.h" #include "msa.h" +/* prototypes for dummy log/alert functions below */ +#include "dialog.h" +#include "log.h" /** * Output string to log file */ -void Log_Printf(int nType, const char *psFormat, ...) +extern void Log_Printf(LOGTYPE nType, const char *psFormat, ...) { va_list argptr; @@ -88,6 +91,7 @@ int main(int argc, char *argv[]) if (!diskBuffer || nImageBytes < 512*8) { fprintf(stderr,"Could not read MSA disk!\n"); + free(targetFileName); return -1; } @@ -110,6 +114,7 @@ int main(int argc, char *argv[]) if (!diskBuffer || nImageBytes < 512*8) { fprintf(stderr,"Could not read ST disk!\n"); + free(targetFileName); return -1; }