From 9b044feef783a04af0e5ad7395c7dc6ebd54becd Mon Sep 17 00:00:00 2001 From: sam Date: Mon, 13 Oct 2008 09:00:27 +0000 Subject: [PATCH] libpipi: fix a double free in the Oric codec. git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@2944 92316355-f0b4-4df1-b90c-862c8a59935f --- pipi/codec/oric.c | 3 --- 1 file changed, 3 deletions(-) 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);