From: Peter Howkins Date: Tue, 13 Jan 2015 10:13:03 +0000 (+0000) Subject: dtstyle: Fix CID 100252 X-Git-Tag: 2.2.3~44 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=fe39b630b371c2ded604a02da43b86e7067ec530;p=oweals%2Fcde.git dtstyle: Fix CID 100252 --- 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); } }