1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-02-15 04:32:24 +00:00

dtsession/SrvFile_io: fix CID's 88299 and 89441

This commit is contained in:
Jon Trulson 2014-12-27 20:06:53 -07:00
parent aa2daba4af
commit 722cfc70eb

View file

@ -228,10 +228,8 @@ char *palette)
DEFAULT_PALETTE); DEFAULT_PALETTE);
} }
if (path != NULL) SRV_FREE(path);
SRV_FREE(path); SRV_FREE(palettePath);
if (palettePath != NULL)
SRV_FREE(palettePath);
return (paletteDef); return (paletteDef);
@ -372,6 +370,7 @@ ReadPaletteFile(
error_value = 1; error_value = 1;
unlink(palettePath); unlink(palettePath);
SRV_FREE(fullPath); SRV_FREE(fullPath);
close(fd);
return((struct _palette *) NULL); return((struct _palette *) NULL);
} }
} }