From 3bccb656914c9d6446765841c33ba0c816ec7e05 Mon Sep 17 00:00:00 2001 From: Thomas Bernard Date: Sun, 8 Dec 2019 12:42:12 +0100 Subject: [PATCH] Load_GOS(): fix memory leak --- src/cpcformats.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/cpcformats.c b/src/cpcformats.c index 55027808..cb989fb5 100644 --- a/src/cpcformats.c +++ b/src/cpcformats.c @@ -773,6 +773,7 @@ void Load_GOS(T_IO_Context* context) } fclose(file); + free(pixel_data); file = Open_file_read_with_alternate_ext(context, "KIT"); if (file == NULL) {