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:
parent
aa2daba4af
commit
722cfc70eb
1 changed files with 3 additions and 4 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue