diff --git a/pipi/codec/oric.c b/pipi/codec/oric.c index e6df6c4..a594a8e 100644 --- a/pipi/codec/oric.c +++ b/pipi/codec/oric.c @@ -149,10 +149,7 @@ int pipi_save_oric(pipi_image_t *img, char const *name) screen = malloc(WIDTH * HEIGHT / 6); write_screen(data, screen); if(tmp) - { - free(screen); pipi_free(tmp); - } fwrite(screen, 1, WIDTH * HEIGHT / 6, fp); fclose(fp);