From fe39b630b371c2ded604a02da43b86e7067ec530 Mon Sep 17 00:00:00 2001 From: Peter Howkins Date: Tue, 13 Jan 2015 10:13:03 +0000 Subject: [PATCH] dtstyle: Fix CID 100252 --- cde/programs/dtstyle/ColorFile.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cde/programs/dtstyle/ColorFile.c b/cde/programs/dtstyle/ColorFile.c index 6f5e124b..9e9042ed 100644 --- a/cde/programs/dtstyle/ColorFile.c +++ b/cde/programs/dtstyle/ColorFile.c @@ -485,6 +485,8 @@ WriteOutPalette( pCurrentPalette->color[i].bg.blue); if(-1 == write(fd, temp, strlen(temp))) { perror(strerror(errno)); + XtFree(temp); + close(fd); return(-1); } } -- 2.25.1